Example #1
0
 def testTimes(self):
     resp = postmaster.get_transit_time(
         '78704',
         '28806',
         '5',
         'ups'
     )
     assert resp is not None
Example #2
0
 def testTimes(self):
     resp = postmaster.get_transit_time(
         from_zip='78704',
         to_zip='78701',
         weight='5',
         carrier='ups',
     )
     assert resp is not None
Example #3
0
def time():
    response = postmaster.get_transit_time(
        from_zip='28771',
        to_zip='78704',
        weight='1.0',
        carrier='ups'
    )
    return response
Example #4
0
 def testTimes(self):
     resp = postmaster.get_transit_time(
         from_zip='78704',
         to_zip='78701',
         weight='5',
         carrier='ups',
     )
     assert resp is not None
Example #5
0
 def testTimesInternational(self):
     resp = postmaster.get_transit_time(
         from_zip='78704',
         to_zip='683300',
         weight='5',
         carrier='ups',
         from_country='US',
         to_country='KR',
     )
     self.assertIsNotNone(resp)
     for service in resp['services']:
         self.assertTrue(service['service'].startswith('INTL_'))
Example #6
0
 def testTimesInternational(self):
     resp = postmaster.get_transit_time(
         from_zip='78704',
         to_zip='683300',
         weight='5',
         carrier='ups',
         from_country='US',
         to_country='KR',
     )
     self.assertIsNotNone(resp)
     for service in resp['services']:
         self.assertTrue(service['service'].startswith('INTL_'))
Example #7
0
 def testTimesInternational(self):
     resp = postmaster.get_transit_time(
         from_zip='78704',
         to_zip='683300',
         weight='5',
         carrier='ups',
         from_country='US',
         to_country='KR',
     )
     self.assertIsNotNone(resp)
     for service in resp['services']:
         self.assertIsInstance(service['delivery_timestamp'], int)
 def testTimesInternational(self):
     resp = postmaster.get_transit_time(
         from_zip='78704',
         to_zip='683300',
         weight='5',
         carrier='ups',
         from_country='US',
         to_country='KR',
     )
     self.assertIsNotNone(resp)
     for service in resp['services']:
         self.assertIsInstance(service['delivery_timestamp'], int)