Skip to content

Commit

Permalink
Fixed broken test because of new column in output
Browse files Browse the repository at this point in the history
  • Loading branch information
elmotec committed Oct 13, 2020
1 parent b1eae9f commit 6cdecc1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def test():
file_content_2 = textwrap.dedent('''\
def test():
print('all OK!')
def other():
print('all good')
''')
Expand Down Expand Up @@ -365,6 +365,7 @@ def test_analysis_with_groupby_svn_download(self, run_):
r2,f.py,0,1,2,8,test,test( ),1,2,0,2,0,0,0,18,4
r2,f.py,1,1,2,8,other,other( ),4,5,0,2,0,0,0,18,4
"""))).set_index(['revision', 'path', 'function'])
actual = actual[expected.columns] # ignore new columns added (e.g. full_parameters)
self.assertEqual(expected, actual)

@mock.patch('codemetrics.internals.run', autospec=True, return_value=None)
Expand All @@ -386,5 +387,3 @@ def test_use_default_download(self):
if __name__ == '__main__':
unittest.main()



0 comments on commit 6cdecc1

Please sign in to comment.