from feature_engineering import add_features def test_add_features(): sample_cases = [{ 'orderID': 1, 'customerID': 36536, 'productID': [2209, 2262, 4912, 3162, 5734], 'paymentMthd': 'Cryptocurrency', 'totalAmt': 576.15, 'invoiceTime': '2024–06–10T23:53:25.329928' }] # Call the function with the sample cases sample_cases = add_features(sample_cases) # Check the assertations for txn in sample_cases: assert 'totalAmtCat' in list(txn.keys()) assert len(txn) == 7 assert len(txn['totalAmtCat']) != 0