Skip to content

Commit

Permalink
Fix tests (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
thejunglejane committed May 19, 2018
1 parent af32d9d commit c3cc310
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions marbles/core/tests/test_marbles.py
Expand Up @@ -291,7 +291,7 @@ class Foo(object):

def test_note_format_strings_custom_format(self):
dt = datetime.date(2017, 8, 12) # noqa: F841
note = 'the dt is {dt:%Y%m%d}'
note = 'the date is {dt:%Y%m%d}'
self.assertTrue(False, note=note)


Expand Down Expand Up @@ -506,7 +506,7 @@ def test_get_stack(self):
self.assertEqual(e.filename, os.path.abspath(__file__))
# This isn't great because I have to change it every time I
# add/remove imports but oh well
self.assertEqual(e.linenumber, 66)
self.assertEqual(e.linenumber, 83)

with self.assertRaises(ContextualAssertionError) as ar:
self.case.test_locals()
Expand All @@ -515,11 +515,11 @@ def test_get_stack(self):
self.assertEqual(e.filename, os.path.abspath(__file__))
# This isn't great because I have to change it every time I
# add/remove imports but oh well
self.assertEqual(e.linenumber, 194)
self.assertEqual(e.linenumber, 211)

def test_assert_stmt_indicates_line(self):
'''Does e.assert_stmt indicate the line from the source code?'''
test_linenumber = 66
test_linenumber = 83
test_filename = os.path.abspath(__file__)
with self.assertRaises(ContextualAssertionError) as ar:
self.case.test_failure()
Expand All @@ -538,7 +538,7 @@ def test_assert_stmt_indicates_line(self):

def test_assert_stmt_surrounding_lines(self):
'''Does _find_assert_stmt read surrounding lines from the file?'''
test_linenumber = 58
test_linenumber = 75
test_filename = os.path.abspath(__file__)
with self.assertRaises(ContextualAssertionError) as ar:
self.case.test_failure()
Expand Down

0 comments on commit c3cc310

Please sign in to comment.