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

Preserve the order of parameterized arguments #401

Merged
merged 3 commits into from
Mar 12, 2021

Conversation

paw-lu
Copy link
Contributor

@paw-lu paw-lu commented Mar 11, 2021

Parameterized jobs will now display in the same order as they are written.

"""Example noxfile.py"""
import nox

@nox.session()
@nox.parameterize(
  ("z", "a"),
  [
    (1, 2),
    (3, 4),
  ]
)
def job(z, a):
    ...

Before

% nox --list

* job(a=2, z=1)
* job(a=4, z=3)

After

% nox --list

* job(z=1, a=2)
* job(z=3, a=4)

Closes #264


Thanks for the great library!

Copy link
Collaborator

@cjolowicz cjolowicz left a comment

Choose a reason for hiding this comment

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

LGTM

@theacodes theacodes merged commit de3d9c5 into wntrblm:main Mar 12, 2021
@theacodes
Copy link
Collaborator

Thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Selecting parameterized tests with CLI does not respect order of parameterize arguments
3 participants