diff --git a/app/tests/test_helm_template.py b/app/tests/test_helm_template.py index 0a6c86f3..39ed3ce3 100644 --- a/app/tests/test_helm_template.py +++ b/app/tests/test_helm_template.py @@ -15,7 +15,7 @@ def setup_method(self): self.mock_builtin_open = patch('builtins.open', mock_open()).start() self.mock_shutil_rm = patch('shutil.rmtree').start() - self.url = '/Helm-template/' + self.url = '/api/Helm-template/' def teardown_method(self): patch.stopall() diff --git a/app/tests/test_iac_basic.py b/app/tests/test_iac_basic.py index f2001d62..3906c500 100644 --- a/app/tests/test_iac_basic.py +++ b/app/tests/test_iac_basic.py @@ -11,7 +11,7 @@ def setup_method(self): self.mock_gpt_service = patch('app.main.gpt_service', return_value='Mocked GPT Response').start() self.mock_openai = patch('app.gpt_services.OpenAI', return_value=mock_client_instance).start() - self.url = '/IaC-basic/' + self.url = '/api/IaC-basic/' def teardown_method(self): patch.stopall() diff --git a/app/tests/test_iac_bugfix.py b/app/tests/test_iac_bugfix.py index a2e54a22..4ce633c0 100644 --- a/app/tests/test_iac_bugfix.py +++ b/app/tests/test_iac_bugfix.py @@ -11,7 +11,7 @@ def setup_method(self): self.mock_gpt_service = patch('app.main.gpt_service', return_value='Mocked GPT Response').start() self.mock_openai = patch('app.gpt_services.OpenAI', return_value=mock_client_instance).start() - self.url = '/IaC-bugfix/' + self.url = '/api/IaC-bugfix/' def teardown_method(self): patch.stopall() diff --git a/app/tests/test_iac_install.py b/app/tests/test_iac_install.py index 39a70039..53317836 100644 --- a/app/tests/test_iac_install.py +++ b/app/tests/test_iac_install.py @@ -16,7 +16,7 @@ def setup_method(self): self.mock_gpt_service = patch('app.main.gpt_service', return_value='Mocked GPT Response').start() self.mock_openai = patch('app.gpt_services.OpenAI', return_value=mock_client_instance).start() - self.url = '/IaC-install/' + self.url = '/api/IaC-install/' def teardown_method(self): patch.stopall() diff --git a/app/tests/test_iac_template.py b/app/tests/test_iac_template.py index 66e29bc3..1d585953 100644 --- a/app/tests/test_iac_template.py +++ b/app/tests/test_iac_template.py @@ -14,13 +14,13 @@ def setup_method(self): self.mock_openai = patch('app.gpt_services.OpenAI', return_value=mock_client_instance).start() self.mock_builtin_open = patch('builtins.open', mock_open()).start() - self.iac_template_docker_url = '/IaC-template/docker' - self.iac_template_ec2_url = '/IaC-template/aws/ec2' - self.iac_template_s3_url = '/IaC-template/aws/s3' - self.iac_template_iam_url = '/IaC-template/aws/iam' - self.iac_template_argocd_url = '/IaC-template/argocd' - self.iac_template_elb_url = '/IaC-template/aws/elb' - self.iac_template_efs_url = '/IaC-template/aws/efs' + self.iac_template_docker_url = '/api/IaC-template/docker' + self.iac_template_ec2_url = '/api/IaC-template/aws/ec2' + self.iac_template_s3_url = '/api/IaC-template/aws/s3' + self.iac_template_iam_url = '/api/IaC-template/aws/iam' + self.iac_template_argocd_url = '/api/IaC-template/argocd' + self.iac_template_elb_url = '/api/IaC-template/aws/elb' + self.iac_template_efs_url = '/api/IaC-template/aws/efs' def teardown_method(self): patch.stopall()