Exemplo n.º 1
0
 def test_build_logs_api_follow(self, osbs):
     logs = osbs.get_build_logs(TEST_BUILD, follow=True)
     assert isinstance(logs, GeneratorType)
     assert next(logs) == "line 1"
     with pytest.raises(StopIteration):
         assert next(logs)
Exemplo n.º 2
0
 def test_build_logs_api_follow(self, osbs):
     logs = osbs.get_build_logs(TEST_BUILD, follow=True)
     assert isinstance(logs, GeneratorType)
     assert next(logs) == "line 1"
     with pytest.raises(StopIteration):
         assert next(logs)
Exemplo n.º 3
0
 def test_build_logs_api(self, osbs):
     logs = osbs.get_build_logs(TEST_BUILD)
     assert isinstance(logs, six.string_types)
     assert logs == "line 1"
Exemplo n.º 4
0
 def test_build_logs_api(self, osbs):
     logs = osbs.get_build_logs(TEST_BUILD)
     assert isinstance(logs, six.string_types)
     assert logs == "line 1"