Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Fix boolean options for real #236

Merged
merged 2 commits into from
May 18, 2018
Merged

Fix boolean options for real #236

merged 2 commits into from
May 18, 2018

Conversation

colin-msphere
Copy link
Contributor

This changes the action from store to store_true and ensures the returned value for the fixture is bool.

This changes the action from `store` to `store_true` and
ensures the returned value for the fixture is `bool`.
Copy link
Contributor

@kvish kvish left a comment

Choose a reason for hiding this comment

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

lgtm, few small suggestions

type=float,
help='CPU quota to set. 0.0 to set no quota.')
type=float, help='CPU quota to set. 0.0 to set no'
' quota.')
Copy link
Contributor

Choose a reason for hiding this comment

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

accidental new line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

72-char cutoff.

conftest.py Outdated
@@ -22,21 +22,20 @@ def pytest_addoption(parser):
help='Number of Jenkins masters to launch.')
parser.addoption('--jobs', action='store', default=1, type=int,
help='Number of test jobs to launch.')
parser.addoption('--single-use', action='store', default=False,
type=bool, help='Use Mesos Single-Use agents')
parser.addoption('--single-use', action='store_true', default=False,
Copy link
Contributor

Choose a reason for hiding this comment

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

might not need default here, since if this flag is present it is always true, makes it a little confusing for user. (same in other places)

@colin-msphere colin-msphere merged commit 89a7973 into master May 18, 2018
@colin-msphere colin-msphere deleted the fix-bool-opts branch May 18, 2018 19:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants