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

Utilities to create subsystem instances. #9528

Merged
merged 3 commits into from
Apr 14, 2020

Conversation

jsirois
Copy link
Contributor

@jsirois jsirois commented Apr 13, 2020

Introduce utility functions to create GoalSubsystem and Subsystem
instances for testing.

Fixes #9141

[ci skip-rust-tests]
[ci skip-jvm-tests]

@jsirois
Copy link
Contributor Author

jsirois commented Apr 13, 2020

Note to self: update with #9526 for improved rank typing.

Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

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

Fantastic. Thank you so much for adding this!

Comment on lines -14 to -16
@pytest.mark.skip(
reason="Figure out how to create a GoalSubsystem for tests. We can't call global_instance()"
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Woohoo!

jsirois added 3 commits April 13, 2020 16:44
Introduce utility functions to create GoalSubsystem and Subsystem
instances for testing.

Fixes pantsbuild#9141
[ci skip-rust-tests]
[ci skip-jvm-tests]
# Delete this line to force CI to run the JVM tests.
[ci skip-jvm-tests]
# Delete this line to force CI to run Clippy and the Rust tests.
[ci skip-rust-tests]
# Delete this line to force CI to run the JVM tests.
[ci skip-jvm-tests]
@jsirois jsirois merged commit 4779d3a into pantsbuild:master Apr 14, 2020
@jsirois jsirois deleted the issues/9141 branch April 14, 2020 03:56
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.

Add a test utility for using GoalSubsystems
2 participants