Skip to content

Instantly share code, notes, and snippets.

@addisonlynch
Created November 4, 2018 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save addisonlynch/89f0a1ca6cabc90e2533ab7ee921dd90 to your computer and use it in GitHub Desktop.
Save addisonlynch/89f0a1ca6cabc90e2533ab7ee921dd90 to your computer and use it in GitHub Desktop.
import pandas as pd
methods = [
("a", 1),
("b", 2),
("c", 3)
]
class TestStocks(object):
def setup_class(self):
self.foo = foo()
@pytest.mark.parametrize(methods)
def test_format(self):
assert self.foo.getattr(methods[0]) == methods[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment