Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fast api0.100.0 and pydantic v2 compatible api migration #89

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/login_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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)
2 changes: 1 addition & 1 deletion tests/test_fetch_fam_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_fetch_indi_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Loading