Skip to content

Commit 3a6d09a

Browse files
Remove noisy warnings and errors during testing (since we're actually expecting them)
1 parent 17e4d8e commit 3a6d09a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

web/tests/test_views.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
"""Tests for the views of codethesaur.us"""
2+
import logging
23
from http import HTTPStatus
34

45
from django.test import TestCase
56
from django.urls import reverse
67
from web.models import LookupData
78

89

10+
def setUpModule():
11+
logging.disable(logging.CRITICAL)
12+
13+
14+
def tearDownModule():
15+
logging.disable(logging.NOTSET)
16+
17+
918
class TestViews(TestCase):
1019
"""TestCase for the views"""
1120

0 commit comments

Comments
 (0)