Skip to content

Commit

Permalink
renamed capmanager class functions (tardis-sn#1055)
Browse files Browse the repository at this point in the history
  • Loading branch information
not4win authored Feb 29, 2020
1 parent a91d421 commit c6e4356
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tardis/tests/integration_tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ def setup(self, request, reference, data_path, pytestconfig):
# We now do a run with prepared config and get the simulation object.
self.result = Simulation.from_config(tardis_config,
atom_data=self.atom_data)
capmanager.suspend_global_capture(True)

capmanager.suspendcapture(True)
# If current test run is just for collecting reference data, store the
# output model to HDF file, save it at specified path. Skip all tests.
# Else simply perform the run and move further for performing
Expand All @@ -139,7 +139,7 @@ def setup(self, request, reference, data_path, pytestconfig):
pytest.skip("Reference data saved at {0}".format(
data_path['reference_path']
))
capmanager.resumecapture()
capmanager.resume_global_capture()

# Get the reference data through the fixture.
self.reference = reference
Expand Down Expand Up @@ -234,4 +234,4 @@ def plot_spectrum(self):
deviation, color='black')
deviation_ax.set_xlabel("Wavelength [Angstrom]")

return plt.gcf()
return plt.gcf()

0 comments on commit c6e4356

Please sign in to comment.