Skip to content

Commit c6d51c5

Browse files
committed
Remove the tests
1 parent 4643125 commit c6d51c5

File tree

2 files changed

+0
-50
lines changed

2 files changed

+0
-50
lines changed

README.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -135,27 +135,6 @@ patch.estimates.create_mass_estimate(mass_g=mass_g)
135135
project_id = 'pro_test_1234' # Pass in the project's ID
136136
patch.estimates.create_mass_estimate(mass_g=mass_g, project_id=project_id)
137137

138-
# Create a flight estimate
139-
distance_m = 1_000_000 # Pass in the distance traveled in meters
140-
patch.estimates.create_flight_estimate(distance_m=distance_m)
141-
142-
# Create an ecommerce estimate
143-
distance_m = 1_000_000 # Pass in the distance traveled in meters
144-
transportation_method = "rail"
145-
package_mass_g = 5000
146-
patch.estimates.create_ecommerce_estimate(
147-
distance_m=distance_m,
148-
transportation_method=transportation_method,
149-
package_mass_g=package_mass_g
150-
)
151-
152-
# Create a vehicle estimate
153-
distance_m = 1_000_000 # Pass in the distance traveled in meters
154-
make = "Toyota"
155-
model = "Corolla"
156-
year = 1995
157-
patch.estimates.create_vehicle_estimate(distance_m=distance_m, make=make, model=model, year=year)
158-
159138
# Create a bitcoin estimate
160139
transaction_value_btc_sats = 1000 # [Optional] Pass in the transaction value in satoshis
161140
patch.estimates.create_bitcoin_estimate(transaction_value_btc_sats=transaction_value_btc_sats)

test/test_estimates_api.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -45,35 +45,6 @@ def test_create_and_retrieve_mass_estimate(self):
4545
retrieved_estimate = self.api.retrieve_estimate(id=estimate.data.id)
4646
self.assertTrue(retrieved_estimate)
4747

48-
def test_create_and_retrieve_flight_estimate(self):
49-
"""Test case for create_flight_estimate
50-
51-
Create an estimate based on the distance in meters flown by an airplane # noqa: E501
52-
"""
53-
distance_m = 1000000
54-
estimate = self.api.create_flight_estimate(
55-
distance_m=distance_m, create_order=True
56-
)
57-
self.assertEqual(estimate.data.type, "flight")
58-
self.assertGreater(estimate.data.order.amount, 50000)
59-
self.assertGreater(estimate.data.mass_g, 50000)
60-
61-
retrieved_estimate = self.api.retrieve_estimate(id=estimate.data.id)
62-
self.assertTrue(retrieved_estimate)
63-
64-
def test_create_and_retrieve_flight_estimate_with_airports(self):
65-
"""Test case for create_flight_estimate
66-
67-
Create an estimate based on the distance in meters flown by an airplane # noqa: E501
68-
"""
69-
estimate_short = self.api.create_flight_estimate(
70-
origin_airport="SFO", destination_airport="LAX"
71-
)
72-
estimate_long = self.api.create_flight_estimate(
73-
origin_airport="SFO", destination_airport="JFK"
74-
)
75-
self.assertGreater(estimate_long.data.mass_g, estimate_short.data.mass_g)
76-
7748
def test_create_bitcoin_estimate_no_params(self):
7849
"""Test case for create_bitcoin_estimate
7950

0 commit comments

Comments
 (0)