Skip to content

Commit

Permalink
add SHD test with valid relai point
Browse files Browse the repository at this point in the history
  • Loading branch information
DylannCordel committed Jan 20, 2021
1 parent 2b8fd93 commit 98e9b0f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions roulier/carriers/gls_eu/tests/test_gls.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,14 @@ def test_FDS():
assert_result(vals, result, 1, 0)


# TODO: find a valid pickupLocationId, else Server Exception from GLS
# def test_SHD():
# vals = copy.deepcopy(DATA)
# vals["to_address"]["contact"] = "Dylann"
# vals["parcels"][0]["services"] = [{"product": SERVICE_SHD, "pickupLocationId": "2501234567"}]
# result = roulier.get("gls_eu", "get_label", vals)
# assert_result(vals, result, 1, 0)
def test_SHD():
vals = copy.deepcopy(DATA)
vals["to_address"]["contact"] = "Dylann"
vals["parcels"][0]["services"] = [
{"product": SERVICE_SHD, "pickupLocationId": "2500389381"}
]
result = roulier.get("gls_eu", "get_label", vals)
assert_result(vals, result, 1, 0)


def test_SHD_auto():
Expand Down

0 comments on commit 98e9b0f

Please sign in to comment.