8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64812dd + eaf0980 commit 51fe4f0Copy full SHA for 51fe4f0
cloud_logging/api/list_logs_test.py
@@ -12,23 +12,11 @@
12
# limitations under the License.
13
14
import re
15
-import unittest
16
17
import list_logs
18
-import testing
19
20
21
-class TestListLogs(testing.CloudTest):
22
-
23
- def test_main(self):
24
- with testing.capture_stdout() as stdout:
25
- list_logs.main(self.config.GCLOUD_PROJECT)
26
27
- output = stdout.getvalue().strip()
28
29
- self.assertRegexpMatches(
30
- output, re.compile(r'.*', re.S))
31
32
33
-if __name__ == '__main__':
34
- unittest.main()
+def test_main(cloud_config, capsys):
+ list_logs.main(cloud_co 3E77 nfig.GCLOUD_PROJECT)
+ out, _ = capsys.readouterr()
+ assert re.search(re.compile(r'.*', re.S), out)
0 commit comments