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