Browse Source

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
tags/3.17.1^0
Colleen Murphy 2 weeks ago
parent
commit
8b06c57292
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      keystoneauth1/tests/unit/test_session.py

+ 0
- 2
keystoneauth1/tests/unit/test_session.py View File

@@ -1199,7 +1199,6 @@ class SessionAuthTests(utils.TestCase):
1199 1199
         self.assertIn(list(response.keys())[0], output)
1200 1200
         self.assertIn(list(response.values())[0], output)
1201 1201
 
1202
-        self.assertNotIn(self.TEST_URL, self.logger.output)
1203 1202
         self.assertNotIn(list(response.keys())[0], self.logger.output)
1204 1203
         self.assertNotIn(list(response.values())[0], self.logger.output)
1205 1204
 
@@ -1550,7 +1549,6 @@ class AdapterTest(utils.TestCase):
1550 1549
         self.assertIn(list(response.keys())[0], output)
1551 1550
         self.assertIn(list(response.values())[0], output)
1552 1551
 
1553
-        self.assertNotIn(self.TEST_URL, self.logger.output)
1554 1552
         self.assertNotIn(list(response.keys())[0], self.logger.output)
1555 1553
         self.assertNotIn(list(response.values())[0], self.logger.output)
1556 1554
 

Loading…
Cancel
Save