Simplify session logger object tests
With the requests-mock logger now configured to log the request[1], checking that the logger output does *not* contain the request is invalid. Simplify these two tests by omitting the assertion. [1] https://github.com/jamielennox/requests-mock/pull/93 Closes-bug: #1842978 Change-Id: If3c0447502917bce831d3e9f7ae4c31374dd4380
This commit is contained in:
parent
38cd5fc6c3
commit
8b06c57292
|
@ -1199,7 +1199,6 @@ class SessionAuthTests(utils.TestCase):
|
|||
self.assertIn(list(response.keys())[0], output)
|
||||
self.assertIn(list(response.values())[0], output)
|
||||
|
||||
self.assertNotIn(self.TEST_URL, self.logger.output)
|
||||
self.assertNotIn(list(response.keys())[0], self.logger.output)
|
||||
self.assertNotIn(list(response.values())[0], self.logger.output)
|
||||
|
||||
|
@ -1550,7 +1549,6 @@ class AdapterTest(utils.TestCase):
|
|||
self.assertIn(list(response.keys())[0], output)
|
||||
self.assertIn(list(response.values())[0], output)
|
||||
|
||||
self.assertNotIn(self.TEST_URL, self.logger.output)
|
||||
self.assertNotIn(list(response.keys())[0], self.logger.output)
|
||||
self.assertNotIn(list(response.values())[0], self.logger.output)
|
||||
|
||||
|
|
Loading…
Reference in New Issue