def test_necessaryFieldsMissing_fail_on_tables(): sample_data = { "fields": [], "values": ["table"], "table": [] } assert necessaryFieldsMissing(sample_data) == True
def test_necessaryFieldsMissing_fail_on_incorrect_size(): sample_data = { "fields": ["field1"], "values": [], "table": "sample_table" } assert necessaryFieldsMissing(sample_data) == True
def test_necessaryFieldsMissing_pass(): sample_data = { "fields": ["field1"], "values": ["value1"], "table": "sample_table" } assert necessaryFieldsMissing(sample_data) == False