File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -35,23 +35,23 @@ def test_topic():
35
35
topic_id = f"topic-{ uuid .uuid4 ().hex } "
36
36
publisher = pubsub_v1 .PublisherClient ()
37
37
topic_path = publisher .topic_path (PROJECT , topic_id )
38
- topic = publisher .create_topic (topic_path )
38
+ topic = publisher .create_topic (request = { "name" : topic_path } )
39
39
40
40
yield topic
41
41
42
- publisher .delete_topic (topic_path )
42
+ publisher .delete_topic (request = { "topic" : topic_path } )
43
43
44
44
45
45
@pytest .fixture (scope = "module" )
46
46
def another_topic ():
47
47
topic_id = f"topic-{ uuid .uuid4 ().hex } "
48
48
publisher = pubsub_v1 .PublisherClient ()
49
49
topic_path = publisher .topic_path (PROJECT , topic_id )
50
- topic = publisher .create_topic (topic_path )
50
+ topic = publisher .create_topic (request = { "name" : topic_path } )
51
51
52
52
yield topic
53
53
54
- publisher .delete_topic (topic_path )
54
+ publisher .delete_topic (request = { "topic" : topic_path } )
55
55
56
56
57
57
@pytest .fixture (scope = "module" )
Original file line number Diff line number Diff line change 1
1
google-cloud-storage == 1.35.0
2
2
google-cloud-asset == 2.2.0
3
3
google-cloud-resource-manager == 0.30.3
4
- google-cloud-pubsub == 1.7 .0
4
+ google-cloud-pubsub == 2.2 .0
5
5
google-cloud-bigquery == 2.6.1
You can’t perform that action at this time.
0 commit comments