Skip to content

Commit

Permalink
Use modern pytest setup methods
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Dec 19, 2022
1 parent f57611f commit 80e1d49
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion integration/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class integration(object):
def setup(self):
def setup_method(self):
self.cwd = os.getcwd()

def teardown(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class organization(object):
Organization of issues into releases (parsing)
"""

def setup(self):
def setup_method(self):
setup_issues(self)

def _expect_entries(self, all_entries, in_, not_in):
Expand Down
2 changes: 1 addition & 1 deletion tests/presentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class presentation(object):
Expansion/extension of docutils nodes (rendering)
"""

def setup(self):
def setup_method(self):
setup_issues(self)

def _generate(self, *entries, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def extra_setup(cl2d):


class get_doctree_:
def setup(self):
def setup_method(self):
self.cwd = Path.cwd()

@patch("releases.util.make_app")
Expand Down

0 comments on commit 80e1d49

Please sign in to comment.