From d9a498d82d2ef3a6a1fab4114c029d91ea3de98b Mon Sep 17 00:00:00 2001 From: Mayuresh Agashe Date: Fri, 28 Jul 2023 09:28:09 +0530 Subject: [PATCH 1/2] Update tests --- tests/login_utils.py | 2 +- tests/test_fetch_fam_data.py | 2 +- tests/test_fetch_indi_data.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/login_utils.py b/tests/login_utils.py index 4821315..4f84dac 100644 --- a/tests/login_utils.py +++ b/tests/login_utils.py @@ -32,5 +32,5 @@ def query_post(url, headers, data): return response -with open("./intended_responses/postdata.json", 'r') as f: +with open("tests/intended_responses/postdata.json", 'r') as f: data = json.load(f) diff --git a/tests/test_fetch_fam_data.py b/tests/test_fetch_fam_data.py index d0d3ec7..2b32c48 100644 --- a/tests/test_fetch_fam_data.py +++ b/tests/test_fetch_fam_data.py @@ -37,7 +37,7 @@ def test_admin(self): "Content-Type": "application/json" } response = requests.get(url=TestFetchFamilyData.url, params=TestFetchFamilyData.params, headers=headers) - with open('./intended_responses/fetch_fam_data.json', 'r') as f: + with open('tests/intended_responses/fetch_fam_data.json', 'r') as f: data = json.load(f) self.assertEqual(response.json(), data) diff --git a/tests/test_fetch_indi_data.py b/tests/test_fetch_indi_data.py index 3555922..d4a8b2b 100644 --- a/tests/test_fetch_indi_data.py +++ b/tests/test_fetch_indi_data.py @@ -36,7 +36,7 @@ def test_admin(self): "Content-Type": "application/json" } response = requests.get(url=TestFetchIndividualData.url, params=TestFetchIndividualData.params, headers=headers) - with open("./intended_responses/fetch_indiv_data.json", 'r') as f: + with open("tests/intended_responses/fetch_indiv_data.json", 'r') as f: data = json.load(f) self.assertEqual(response.json(), data) From f5e3d98b68af265b6b89316cb9b741ee946a4ead Mon Sep 17 00:00:00 2001 From: Mayuresh Agashe Date: Fri, 28 Jul 2023 09:36:15 +0530 Subject: [PATCH 2/2] Update tests --- tests/login_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/login_utils.py b/tests/login_utils.py index 4f84dac..416c334 100644 --- a/tests/login_utils.py +++ b/tests/login_utils.py @@ -6,7 +6,7 @@ # BASE_URL = "https://ubaformapi-git-prod-fastapis-build.vercel.app" # for GitHub actions # BASE_URL = "http://127.0.0.1:8000" # for testing locally -BASE_URL = "https://vercel.live/link/ubaformapi-git-fastapi01000andpydanticv2c-80d502-fastapis-build.vercel.app?via=deployment-domains-list-branch" +BASE_URL = "https://ubaformapi-git-fastapi01000andpydanticv2c-80d502-fastapis-build.vercel.app" def get_access_token(data, return_refresh_token=False):