VOLTTRON / volttron

VOLTTRON Distributed Control System Platform
https://volttron.readthedocs.io/
Other
457 stars 216 forks source link

Modify expected output #3004

Closed bonicim closed 2 years ago

bonicim commented 2 years ago

Description

The expected output for test_create_aggregate_store could vary because the PRAGMA index_list statement is producing different outputs depending on what machine is being used to run the test.

I ran this test on Centos 7.0 and saw that test_create_aggregate_store failed because the actual output did not match the expected output. This test makes a PRAGMA statement to get a list of indexes and then compares that list to the expected list. When this test is run on Ubutntu, the PRAGMA statement returns ["0|idx_AVG_1984|0|c|0", "1|sqlite_autoindex_AVG_1984_1|1|u|0"], but on Centos 7.0, it returns ['0|idx_AVG_1984|0', '1|sqlite_autoindex_AVG_1984_1|1']. To ensure that tests can run on both flavors of Linux, this PR modifies the assertion test in test_create_aggregate_store.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

pytest -s test_sqlitefuncts.py

# expected output

53 passed, 2 skipped in 48.30s

Checklist: