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

Integration tests: call pytest directly #85

Merged
merged 3 commits into from
Feb 28, 2024
Merged

Conversation

sbesson
Copy link
Member

@sbesson sbesson commented Jan 22, 2024

See #84 (comment)

Following the upgrade of the test infrastructure to Rocky Linux 9/Python 3.9 (see ome/omero-test-infra#66), some of the tests started failing due to the presence of logging statements in the stdout conflicting with some of the assert checks.
After some investigation, this behavioral change does not look to be related to the operating system or Python version per se but is more specific to the testing infrastructure.

These changes depend on ome/omero-test-infra#68 to call pytest directly instead of python setup.py test and revert a11343c.

o = self.invoke(capfd)
assert "FileAnnotation:" not in o
assert o == ""
assert len(o.strip()) == 0
Copy link
Member

Choose a reason for hiding this comment

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

This 2nd assert seems redundant since you're already checked that o == ""?

Copy link
Member Author

Choose a reason for hiding this comment

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

The tests have been restored to their previous state before cd4f657 but I agree the second assert feels likely superfluous and could be pushed away if we wish so

Copy link
Member

@will-moore will-moore left a comment

Choose a reason for hiding this comment

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

Code changes look good and integration tests with omero-test-infra are passing.

@sbesson
Copy link
Member Author

sbesson commented Feb 23, 2024

A side-note that these changes also include the removal of the future dependency in a20206d.

Combined with the release of OMERO.py 5.19.0, this should make this plugin functional with Python 3.12.0. Adding it to the overarching GitHub projects tracking the various locations to update/review

@sbesson sbesson merged commit e2fc5ec into ome:master Feb 28, 2024
1 check passed
@sbesson sbesson deleted the pytest_logging branch February 28, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

2 participants