File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -35,23 +35,23 @@ def test_topic():
3535 topic_id = f"topic-{ uuid .uuid4 ().hex } "
3636 publisher = pubsub_v1 .PublisherClient ()
3737 topic_path = publisher .topic_path (PROJECT , topic_id )
38- topic = publisher .create_topic (topic_path )
38+ topic = publisher .create_topic (request = { "name" : topic_path } )
3939
4040 yield topic
4141
42- publisher .delete_topic (topic_path )
42+ publisher .delete_topic (request = { "topic" : topic_path } )
4343
4444
4545@pytest .fixture (scope = "module" )
4646def another_topic ():
4747 topic_id = f"topic-{ uuid .uuid4 ().hex } "
4848 publisher = pubsub_v1 .PublisherClient ()
4949 topic_path = publisher .topic_path (PROJECT , topic_id )
50- topic = publisher .create_topic (topic_path )
50+ topic = publisher .create_topic (request = { "name" : topic_path } )
5151
5252 yield topic
5353
54- publisher .delete_topic (topic_path )
54+ publisher .delete_topic (request = { "topic" : topic_path } )
5555
5656
5757@pytest .fixture (scope = "module" )
Original file line number Diff line number Diff line change 11google-cloud-storage == 1.35.0
22google-cloud-asset == 2.2.0
33google-cloud-resource-manager == 0.30.3
4- google-cloud-pubsub == 1.7 .0
4+ google-cloud-pubsub == 2.2 .0
55google-cloud-bigquery == 2.6.1
You can’t perform that action at this time.
0 commit comments