Skip to content

Instantly share code, notes, and snippets.

@jdnc
Last active December 18, 2015 14:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdnc/5794562 to your computer and use it in GitHub Desktop.
Save jdnc/5794562 to your computer and use it in GitHub Desktop.
example of @pytest.mark.parametrize
@pytest.mark.parametrize(('coordinate', 'radius', 'expected_payload'),
[
("m81", None, dict(locstr="m81")),
("m31", "5d", dict(locstr="m31", regSize=5.0))
])
def test_args_to_payload_instance_1(self, coordinate, radius,
expected_payload):
payload = irsa_dust.core.IrsaDust().args_to_payload(coordinate, radius=radius)
assert payload == expected_payload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment