diff --git a/tests/login_utils.py b/tests/login_utils.py index 4821315..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): @@ -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)