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

Modernize tests to use new fixtures #676

Merged
merged 1 commit into from
Jun 7, 2024
Merged

Conversation

gerrod3
Copy link
Contributor

@gerrod3 gerrod3 commented Jun 7, 2024

This is required work for my domains PR (and future RBAC PR). This brings pulp_python into modern Pulp testing era and removes its dependency on pulp_smash. Trimmed a lot of pointless tests, so hopefully the CI runs even faster.

@gerrod3 gerrod3 force-pushed the test-modernize branch 2 times, most recently from f478669 to 6f6aab4 Compare June 7, 2024 11:17
@gerrod3 gerrod3 marked this pull request as ready for review June 7, 2024 11:26
pulp_python/pytest_plugin.py Outdated Show resolved Hide resolved
entry_points={"pulpcore.plugin": ["pulp_python = pulp_python:default_app_config", ]},
entry_points={
"pulpcore.plugin": ["pulp_python = pulp_python:default_app_config"],
"pytest11": ["pulp_python = pulp_python.pytest_plugin"],
Copy link
Member

Choose a reason for hiding this comment

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

Is it really worth turning this into a pytest plugin? But also why not...

requirements.txt Show resolved Hide resolved
def test_published_index(
python_bindings,
python_repo_with_sync,
python_remote_factory,
Copy link
Member

Choose a reason for hiding this comment

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

I'm beginning to wonder if we should put all the factories into the bindings fixture too.

@gerrod3 gerrod3 enabled auto-merge June 7, 2024 12:07
@gerrod3 gerrod3 merged commit f2ce93a into pulp:main Jun 7, 2024
16 checks passed
@gerrod3 gerrod3 deleted the test-modernize branch June 7, 2024 18:29
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