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

fix: fix transaction unit test #427

Conversation

vincentsarago
Copy link
Contributor

Issue

Link to relevant GitHub issue

What?

  • Description of the changes made

Why?

  • Description of why the changes were made

Testing?

  • Relevant testing details

@@ -208,7 +210,7 @@
}


@pytest.fixture
@pytest.fixture(autouse=True)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

using autouse=True will make sure the fixture is ran for each test

@smohiudd smohiudd changed the title fix fix: fix transaction unit test Sep 12, 2024
@@ -53,59 +53,59 @@ def setup(
self.invalid_stac_collection = invalid_stac_collection
self.invalid_stac_item = invalid_stac_item

def test_post_invalid_collection(self):
async def test_post_invalid_collection(self):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the function weren't async while the api_client fixture is async

@smohiudd smohiudd merged commit 1a7564d into chore/fix-transaction-unit-tests Sep 12, 2024
4 checks passed
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.

2 participants