Last active
December 18, 2015 14:08
-
-
Save jdnc/5794562 to your computer and use it in GitHub Desktop.
example of @pytest.mark.parametrize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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