Skip to content

Commit

Permalink
Fix patch for DEBUG value during testing
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkKoz committed Feb 5, 2021
1 parent 1a25ef5 commit 193fd8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_nsjail.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def setUp(self):
super().setUp()

self.nsjail = NsJail()
self.nsjail.DEBUG = False
self.logger = logging.getLogger("snekbox.nsjail")
self.logger.setLevel(logging.WARNING)

Expand Down Expand Up @@ -101,6 +100,7 @@ def test_null_byte_value_error(self):
self.assertEqual(result.stdout, "ValueError: embedded null byte")
self.assertEqual(result.stderr, None)

@unittest.mock.patch("snekbox.nsjail.DEBUG", new=False)
def test_log_parser(self):
log_lines = (
"[D][2019-06-22T20:07:00+0000][16] void foo::bar()():100 This is a debug message.",
Expand Down

0 comments on commit 193fd8a

Please sign in to comment.