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

Centralise the pytest marks #1024

Merged
merged 4 commits into from
Nov 1, 2023
Merged

Centralise the pytest marks #1024

merged 4 commits into from
Nov 1, 2023

Conversation

qc00
Copy link
Contributor

@qc00 qc00 commented Nov 1, 2023

Reference Issues/PRs

Forked out of #1014

What does this implement or fix?

Move the various skipif to a centralised location to improve maintainability.

Checklist

Checklist for code changes...
  • Have you updated the relevant docstrings, documentation and copyright notice?
  • Is this contribution tested against all ArcticDB's features?
  • Do all exceptions introduced raise appropriate error messages?
  • Are API changes highlighted in the PR description?
  • Is the PR labelled as enhancement or bug so it appears in autogenerated release notes?

qc00 and others added 3 commits November 1, 2023 13:00
* Replaced the manual fixture parameterization in test_deletion.py
"lmdb_version_store_v1",
"lmdb_version_store_v2",
"s3_version_store_v1",
"s3_version_store_v2",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unrelated to this PR, but I think we should drop the s3_version_store_v2 fixture from these lists. Doing one encoding on S3, and both on LMDB (which is much faster) ought to be fine

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can mark it with a thorough custom mark, which will make it easy to skip from the command line at a later date.


# These two should become pytest marks as opposed to variables feeding into skipif
PERSISTENT_STORAGE_TESTS_ENABLED = os.getenv("ARCTICDB_PERSISTENT_STORAGE_TESTS") == "1"
FAST_TESTS_ONLY = os.getenv("ARCTICDB_FAST_TESTS_ONLY") == "1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for keeping FAST_TESTS_ONLY alive, I added it recently just for local development, otherwise the feedback cycle is horrific.

@qc00 qc00 merged commit e3ecdf3 into master Nov 1, 2023
98 checks passed
@qc00 qc00 deleted the marks branch November 1, 2023 19:09
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.

None yet

2 participants