feat: add autonomous fiscal completion v1
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from central.app.product_data_provider import result_cache_key
|
||||
|
||||
|
||||
def test_same_classification_inputs_have_same_cache_key():
|
||||
first = result_cache_key({"gtin": "789", "description": "X"}, ["12345678"], {"ncm": "v1"}, "prompt-v1", "model-v1")
|
||||
second = result_cache_key({"description": "X", "gtin": "789"}, ["12345678"], {"ncm": "v1"}, "prompt-v1", "model-v1")
|
||||
|
||||
assert first == second
|
||||
|
||||
|
||||
def test_changed_dataset_changes_cache_key():
|
||||
first = result_cache_key({"gtin": "789"}, ["12345678"], {"ncm": "v1"}, "prompt-v1", "model-v1")
|
||||
second = result_cache_key({"gtin": "789"}, ["12345678"], {"ncm": "v2"}, "prompt-v1", "model-v1")
|
||||
|
||||
assert first != second
|
||||
Reference in New Issue
Block a user