Skip to content

Commit

Permalink
remove a few print statements; add pytest.ini to filter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
artgoldberg committed Dec 11, 2018
1 parent 52cb319 commit 18320ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 8 additions & 0 deletions 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
3 changes: 0 additions & 3 deletions tests/test_io.py
Expand Up @@ -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)
Expand Down

0 comments on commit 18320ba

Please sign in to comment.