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

Upgrade to using PyTest 7 #738

Merged
merged 3 commits into from
Dec 27, 2023
Merged

Upgrade to using PyTest 7 #738

merged 3 commits into from
Dec 27, 2023

Conversation

chrisrink10
Copy link
Member

Fixes #660

@chrisrink10 chrisrink10 force-pushed the fix/upgrade-to-pytest-7 branch from 2c3f85c to e95aceb Compare December 27, 2023 20:24
Comment on lines +220 to +224
def _import_module(self) -> runtime.BasilispModule:
modname = _get_fully_qualified_module_name(self.path)
module = importlib.import_module(modname)
assert isinstance(module, runtime.BasilispModule)
return module
Copy link
Member Author

Choose a reason for hiding this comment

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

py.path.local used to have a function which did this before, so replacing it required some annoying re-implementation of that logic to figure out the module name and import it manually.

Comment on lines +173 to +174
def __init__(self, **kwargs) -> None:
super().__init__(**kwargs)
Copy link
Member Author

Choose a reason for hiding this comment

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

@chrisrink10 chrisrink10 merged commit 190edf1 into main Dec 27, 2023
8 of 9 checks passed
@chrisrink10 chrisrink10 deleted the fix/upgrade-to-pytest-7 branch December 27, 2023 20:40
chrisrink10 added a commit that referenced this pull request Dec 28, 2023
Hi, 

could you please review patch to fix a break with the recent upgrade to
pytest 7 in #738 in the circle CI coverage test. Fixes #740.

The `_test` suffix was not preperly identified as a basilisp test
suffix, and was failing the coverage tests for `stacktrace_test.lpy`,
which was not following the same pattern as of the other test files.

I've both fixed the testrunner to properly identifying these as before
the upgrade, but also renamed the above to `test_stacktrace.lpy` for
conformity with the current pattern.

Thanks

Co-authored-by: ikappaki <[email protected]>
Co-authored-by: Chris Rink <[email protected]>
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.

Support Pytest 7.0
1 participant