コード例 #1
0
 def test_multi_order_latest_brief_bpl(self):
     self.assertEqual(
         find_latest_full_order("BPL", [{
             "locs": "50afc(2)^51afc^14(2)^41"
         }]),
         {"locs": "50afc(2),51afc,14(2),41"},
     )
コード例 #2
0
 def test_one_order_full_location_with_double_digit_qty_nypl(self):
     self.assertEqual(
         find_latest_full_order("NYPL", [{
             "locs": "wfa0f(99)"
         }]),
         {"locs": "wfa0f(99)"},
     )
コード例 #3
0
 def test_multi_order_full_location_with_single_digit_qty_bpl(self):
     self.assertEqual(
         find_latest_full_order("BPL", [{
             "locs": "14^41^50afc(2)^51afc"
         }]),
         {"locs": "50afc(2),14,41,51afc"},
     )
コード例 #4
0
 def test_one_order_full_location_with_double_digit_qty_bpl(self):
     self.assertEqual(
         find_latest_full_order("BPL", [{
             "locs": "14afc(99)"
         }]),
         {"locs": "14afc(99)"},
     )
コード例 #5
0
 def test_multi_order_latest_brief_nypl(self):
     self.assertEqual(
         find_latest_full_order("NYPL", [{
             "locs": "wfa0f(2),sna0f"
         }, {
             "locs": "wf(2),sn"
         }]),
         {"locs": "wfa0f(2),sna0f"},
     )
コード例 #6
0
 def test_multi_order_full_location_with_single_digit_qty_nypl(self):
     self.assertEqual(
         find_latest_full_order("NYPL", [{
             "locs": "wf,sn"
         }, {
             "locs": "wfa0f(2),sna0f"
         }]),
         {"locs": "wfa0f(2),sna0f"},
     )
コード例 #7
0
 def test_one_order_basic_location_with_qty_bpl(self):
     self.assertIsNone(find_latest_full_order("BPL", [{"locs": "13(2)"}]))
コード例 #8
0
 def test_one_order_full_location_nypl(self):
     self.assertEqual(find_latest_full_order("NYPL", [{
         "locs": "wfa0f"
     }]), {"locs": "wfa0f"})
コード例 #9
0
 def test_one_order_basic_location_nypl(self):
     self.assertIsNone(find_latest_full_order("NYPL", [{"locs": "sn"}]))
コード例 #10
0
 def test_empty_list_bpl(self):
     self.assertIsNone(find_latest_full_order("BPL", []))
コード例 #11
0
 def test_one_order_full_location_with_single_digit_qty_bpl(self):
     self.assertEqual(find_latest_full_order("BPL", [{
         "locs": "13anf(2)"
     }]), {"locs": "13anf(2)"})
コード例 #12
0
 def test_one_order_full_location_bpl(self):
     self.assertEqual(find_latest_full_order("BPL", [{
         "locs": "13anf"
     }]), {"locs": "13anf"})