Skip to content

Commit

Permalink
Silence expected errors in the tests
Browse files Browse the repository at this point in the history
These cause "display" issues on GitHub.
  • Loading branch information
mwiencek committed Feb 22, 2024
1 parent 14fb45b commit b8bdf5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import configparser
import json
import logging
import unittest
from textwrap import dedent

from pg_conn_wrapper import PgConnWrapper


logger = logging.getLogger()
logger.setLevel(logging.CRITICAL)
del logger


tests_config = configparser.ConfigParser()
tests_config.read('config.tests.ini')

Expand Down
1 change: 0 additions & 1 deletion tests/test_caa.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,6 @@ def test_deleting_release(self):

# Make the copy fail. This should halt processing of all dependant
# events (delete_image, index).
print('note, the following test is expected to log an HTTP 400 error')
self.session.last_requests = []
self.session.next_responses = [
MockResponse(status=400),
Expand Down
1 change: 0 additions & 1 deletion tests/test_eaa.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ def test_deleting_event(self):

# Make the copy fail. This should halt processing of all dependant
# events (delete_image, index).
print('note, the following test is expected to log an HTTP 400 error')
self.session.last_requests = []
self.session.next_responses = [
MockResponse(status=400),
Expand Down

0 comments on commit b8bdf5f

Please sign in to comment.