Skip to content

Commit 5383fcb

Browse files
authored
Merge pull request #137 from arasheghdam84/test/update-tests
test: update urls in tests
2 parents 5b80d53 + db66ade commit 5383fcb

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

app/tests/test_helm_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def setup_method(self):
1515
self.mock_builtin_open = patch('builtins.open', mock_open()).start()
1616
self.mock_shutil_rm = patch('shutil.rmtree').start()
1717

18-
self.url = '/Helm-template/'
18+
self.url = '/api/Helm-template/'
1919

2020
def teardown_method(self):
2121
patch.stopall()

app/tests/test_iac_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def setup_method(self):
1111
self.mock_gpt_service = patch('app.main.gpt_service', return_value='Mocked GPT Response').start()
1212
self.mock_openai = patch('app.gpt_services.OpenAI', return_value=mock_client_instance).start()
1313

14-
self.url = '/IaC-basic/'
14+
self.url = '/api/IaC-basic/'
1515

1616
def teardown_method(self):
1717
patch.stopall()

app/tests/test_iac_bugfix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def setup_method(self):
1111
self.mock_gpt_service = patch('app.main.gpt_service', return_value='Mocked GPT Response').start()
1212
self.mock_openai = patch('app.gpt_services.OpenAI', return_value=mock_client_instance).start()
1313

14-
self.url = '/IaC-bugfix/'
14+
self.url = '/api/IaC-bugfix/'
1515

1616
def teardown_method(self):
1717
patch.stopall()

app/tests/test_iac_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def setup_method(self):
1616
self.mock_gpt_service = patch('app.main.gpt_service', return_value='Mocked GPT Response').start()
1717
self.mock_openai = patch('app.gpt_services.OpenAI', return_value=mock_client_instance).start()
1818

19-
self.url = '/IaC-install/'
19+
self.url = '/api/IaC-install/'
2020

2121
def teardown_method(self):
2222
patch.stopall()

app/tests/test_iac_template.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ def setup_method(self):
1414
self.mock_openai = patch('app.gpt_services.OpenAI', return_value=mock_client_instance).start()
1515
self.mock_builtin_open = patch('builtins.open', mock_open()).start()
1616

17-
self.iac_template_docker_url = '/IaC-template/docker'
18-
self.iac_template_ec2_url = '/IaC-template/aws/ec2'
19-
self.iac_template_s3_url = '/IaC-template/aws/s3'
20-
self.iac_template_iam_url = '/IaC-template/aws/iam'
21-
self.iac_template_argocd_url = '/IaC-template/argocd'
22-
self.iac_template_elb_url = '/IaC-template/aws/elb'
23-
self.iac_template_efs_url = '/IaC-template/aws/efs'
17+
self.iac_template_docker_url = '/api/IaC-template/docker'
18+
self.iac_template_ec2_url = '/api/IaC-template/aws/ec2'
19+
self.iac_template_s3_url = '/api/IaC-template/aws/s3'
20+
self.iac_template_iam_url = '/api/IaC-template/aws/iam'
21+
self.iac_template_argocd_url = '/api/IaC-template/argocd'
22+
self.iac_template_elb_url = '/api/IaC-template/aws/elb'
23+
self.iac_template_efs_url = '/api/IaC-template/aws/efs'
2424

2525
def teardown_method(self):
2626
patch.stopall()

0 commit comments

Comments
 (0)