Skip to content

Commit

Permalink
chore: updates to ordering of generated tests (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Aug 19, 2020
1 parent 667eefd commit f27e339
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ class ReservationServiceAsyncClient:

assignment_path = staticmethod(ReservationServiceClient.assignment_path)

reservation_path = staticmethod(ReservationServiceClient.reservation_path)

bi_reservation_path = staticmethod(ReservationServiceClient.bi_reservation_path)

capacity_commitment_path = staticmethod(
ReservationServiceClient.capacity_commitment_path
)

reservation_path = staticmethod(ReservationServiceClient.reservation_path)

from_service_account_file = ReservationServiceClient.from_service_account_file
from_service_account_json = from_service_account_file

Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-bigquery-reservation/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
{
"git": {
"name": ".",
"remote": "git@github.com:googleapis/python-bigquery-reservation.git",
"sha": "427dfea24639fcdf1b78197854d8f93b09a4495f"
"remote": "https://github.com/googleapis/python-bigquery-reservation.git",
"sha": "a0e818d526dc60f0eb24787333e1041b02f26816"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5557,31 +5557,6 @@ def test_parse_assignment_path():
assert expected == actual


def test_reservation_path():
project = "squid"
location = "clam"
reservation = "whelk"

expected = "projects/{project}/locations/{location}/reservations/{reservation}".format(
project=project, location=location, reservation=reservation,
)
actual = ReservationServiceClient.reservation_path(project, location, reservation)
assert expected == actual


def test_parse_reservation_path():
expected = {
"project": "octopus",
"location": "oyster",
"reservation": "nudibranch",
}
path = ReservationServiceClient.reservation_path(**expected)

# Check that the path construction is reversible.
actual = ReservationServiceClient.parse_reservation_path(path)
assert expected == actual


def test_bi_reservation_path():
project = "squid"
location = "clam"
Expand Down Expand Up @@ -5630,3 +5605,28 @@ def test_parse_capacity_commitment_path():
# Check that the path construction is reversible.
actual = ReservationServiceClient.parse_capacity_commitment_path(path)
assert expected == actual


def test_reservation_path():
project = "squid"
location = "clam"
reservation = "whelk"

expected = "projects/{project}/locations/{location}/reservations/{reservation}".format(
project=project, location=location, reservation=reservation,
)
actual = ReservationServiceClient.reservation_path(project, location, reservation)
assert expected == actual


def test_parse_reservation_path():
expected = {
"project": "octopus",
"location": "oyster",
"reservation": "nudibranch",
}
path = ReservationServiceClient.reservation_path(**expected)

# Check that the path construction is reversible.
actual = ReservationServiceClient.parse_reservation_path(path)
assert expected == actual

0 comments on commit f27e339

Please sign in to comment.