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.
1 parent afead75 commit 6421e39Copy full SHA for 6421e39
samples/snippets/export_test.py
@@ -48,6 +48,12 @@ def _():
48
49
50
def test_create(cloud_config, capsys):
51
+ # Delete the sink if it exists, otherwise the test will fail in conflit.
52
+ client = logging.Client()
53
+ sink = client.sink(TEST_SINK_NAME)
54
+ if sink.exists():
55
+ sink.delete()
56
+
57
export.create_sink(
58
TEST_SINK_NAME,
59
TEST_SINK_FILTER,
@@ -56,6 +62,7 @@ def test_create(cloud_config, capsys):
62
63
out, _ = capsys.readouterr()
64
assert TEST_SINK_NAME in out
65
+ assert sink.exists()
66
60
67
61
68
def test_update(example_sink, capsys):
0 commit comments