Skip to content

Conversation

@tlelv
Copy link
Collaborator

@tlelv tlelv commented Jul 21, 2025

No description provided.

df_final = locations.get_locations(
office_id=TEST_OFFICE, location_ids=TEST_LOCATION_ID
).df
assert TEST_LOCATION_ID not in df_final["name"].values
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there are no location the df from the get_locations call is empty. That is why your test is erroring out. You can either add 2 locations and then using the same assert. or check if it is empty. just checking that it is empty might not work if there is a lagging locations from another test hanging around. I would maybe place this test as the last test.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved the test and added the second location.

@sonarqubecloud
Copy link

@tlelv tlelv merged commit 9af076f into main Jul 23, 2025
9 checks passed
@tlelv tlelv deleted the CDA-testing branch July 23, 2025 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants