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

chore: register postgres_params custom pytest.mark #327

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

MasterOdin
Copy link
Contributor

PR registers the custom pytest.mark.postgres_params mark (per pytest docs) so that should no longer see the following warning when running the pgai tests:

=============================================== warnings summary ===============================================
tests/vectorizer/test_vectorizer_cli.py:320
  /Users/mpeveler/code/timescale/pgai/projects/pgai/tests/vectorizer/test_vectorizer_cli.py:320: PytestUnknownMarkWarning: Unknown pytest.mark.postgres_params - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.postgres_params(load_openai_key=False)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

@MasterOdin MasterOdin requested a review from a team as a code owner December 20, 2024 17:52
Copy link
Contributor

@Askir Askir left a comment

Choose a reason for hiding this comment

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

Ah yes I forgot to do that thank you!

@MasterOdin MasterOdin merged commit 89039b2 into main Dec 23, 2024
5 checks passed
@MasterOdin MasterOdin deleted the mpeveler/chore-pytest-marker branch December 23, 2024 16:53
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