Skip to content

Fix conftestpy #4

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

Merged
merged 9 commits into from
Nov 15, 2023
Merged

Fix conftestpy #4

merged 9 commits into from
Nov 15, 2023

Conversation

bfmcneill
Copy link
Contributor

This PR will remap all the fixtures previously referenced in the option test helper module into a conftest.py implementation. No tests were changed except a handful that had to be refactored to not include fixtures inside the parametrized fixtures.

I branched from the initial PR I made so this PR will merge smoothly if the previous PR is approved.

@bfmcneill
Copy link
Contributor Author

I forgot to mention that all tests still pass except the ones marked with xfail. It looks like the ones marked with xfail are referencing fixtures that do not exist yet.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of a pipfile, I was going to include a requirements.txt. It's in my current branch. It seems like pipfile and pipfile.lock is the newer way to do this. It seems a lot like yarn in the nodejs world.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pipenv was a workflow I gravitated towards and just got hooked. My favorite part is the pipenv graph command. There is a way to kick out a requirements file from the pipenv if you prefer that.

@@ -11,6 +14,7 @@ def test_kwargs_are_set_as_attributes():
assert combo.transaction_id == tx_id
assert combo.user_defined == user_defined

@pytest.mark.xfail(raises=NameError)
Copy link
Collaborator

Choose a reason for hiding this comment

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

These tests were not updated after the refactor of the option object, so this is fine.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This file is deleted in my branch. It was just a file to make sure my test runner configuraion was set up properly in the IDE.

@Bougiefever Bougiefever merged commit 0dafa6a into main Nov 15, 2023
@Bougiefever Bougiefever deleted the fix-conftestpy branch November 27, 2023 20:48
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