From 18320baea76e089ce3fbef74ed7c2148ca9eb7d3 Mon Sep 17 00:00:00 2001 From: Arthur Goldberg Date: Tue, 11 Dec 2018 09:01:39 -0500 Subject: [PATCH] remove a few print statements; add pytest.ini to filter warnings --- pytest.ini | 8 ++++++++ tests/test_io.py | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..8b9d61a --- /dev/null +++ b/pytest.ini @@ -0,0 +1,8 @@ +[pytest] +filterwarnings = + ignore:.*getargspec.* is deprecated:DeprecationWarning + ignore:.*setting concentration for .* to 0.0:UserWarning + ignore:Primary class.* Related class .* must have a primary attribute:UserWarning + ignore:.* exchange reactions created .*:UserWarning + ignore:.* minimum and .* maximum default flux bounds set for submodel:UserWarning + ignore:Assuming missing concentrations for the following metabolites .*:UserWarning diff --git a/tests/test_io.py b/tests/test_io.py index 974f3b4..77a142f 100644 --- a/tests/test_io.py +++ b/tests/test_io.py @@ -292,9 +292,6 @@ def test_read_write(self): for i_row, (copy_row, original_row) in enumerate(zip(copy[sheet], original[sheet])): self.assertEqual(copy_row, original_row, msg='Rows {} of {} sheets are not equal'.format(i_row, sheet)) - print(sheet) - print(copy[sheet]) - print(original[sheet]) self.assertEqual(copy[sheet], original[sheet], msg='{} sheets are not equal'.format(sheet)) self.assertEqual(copy, original)