Skip to content

Commit

Permalink
chore: add prerelease nox session (#281)
Browse files Browse the repository at this point in the history
* chore(python): add missing import for prerelease testing

Source-Link: googleapis/synthtool@d2871d9
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:b2dc5f80edcf5d4486c39068c9fa11f7f851d9568eea4dcba130f994ea9b5e97

* check samples failure

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* lint

* check samples failure

* add 30 seconds to request timestamp

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
  • Loading branch information
3 people authored Jun 21, 2022
1 parent 9a6169a commit 99a8b41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
+ product_id
)

# The request timestamp
current_date = datetime.datetime.now()


# add fulfillment request
def get_add_fulfillment_request(
Expand Down Expand Up @@ -70,6 +67,9 @@ def add_fulfillment_places(product_name: str, timestamp, place_id):


create_product(product_id)

# The request timestamp
current_date = datetime.datetime.now() + datetime.timedelta(seconds=30)
print(f"------add fulfilment places with current date: {current_date}-----")
add_fulfillment_places(product_name, current_date, "store2")
get_product(product_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_product_with_inventory_info(product_name: str) -> Product:
# set inventory request
def get_set_inventory_request(product_name: str) -> SetInventoryRequest:
# The request timestamp
request_time = datetime.datetime.now()
request_time = datetime.datetime.now() + datetime.timedelta(seconds=30)
set_mask = FieldMask(
paths=["price_info", "availability", "fulfillment_info", "available_quantity"]
)
Expand Down

0 comments on commit 99a8b41

Please sign in to comment.