Skip to content

Commit

Permalink
Completely remove methods making only a super call.
Browse files Browse the repository at this point in the history
  • Loading branch information
Karan Desai committed Jun 8, 2016
1 parent 88f6e54 commit c3d3f1a
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions tardis/tests/tests_slow/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self, dokuwiki_details):
password of dokuwiki is passed through `dokuwiki_details`.
"""
logfile = tempfile.TemporaryFile()
super(DokuReport, self).__init__(logfile)
super(DokuReport, self).__init__(logfile.name)
self.logfile = logfile

# This list stores tuples of name, result, duration of each test in
Expand Down Expand Up @@ -89,24 +89,6 @@ def add_plot(self, path):
"""
self.image_path = path

def pytest_sessionstart(self, session):
"""
This hook function is called by pytest after all the methods and
collected and before the test execution has been started. Here, the
starting time is being recorded.
"""
super(DokuReport, self).pytest_sessionstart(session)

def pytest_runtest_logreport(self, report):
"""
This hook function is called by pytest during setup/ call/ teardown of a
particular test. Status of execution is passed into report object. Here,
according to the situation of pass, fail, skip or error or a test,
corresponding methods of the class are called, to append details about
this particular test method in the report.
"""
super(DokuReport, self).pytest_runtest_logreport(report)

def _appendrow(self, result, report):
"""
This method is called indirectly by `pytest_runtest_logreport` according
Expand Down

0 comments on commit c3d3f1a

Please sign in to comment.