0001-tests-allow-any-order-in-csv-files-listdir-65552.patch
tests/test_csv_datasource.py | ||
---|---|---|
1119 | 1119 |
pass |
1120 | 1120 |
csvdata.csv_file.name = 'foo/%s/csv-file.csv' % csvdata.slug |
1121 | 1121 |
csvdata.save() |
1122 |
assert os.listdir(other_dir) == ['bar.csv', 'csv-file.csv']
|
|
1122 |
assert set(os.listdir(other_dir)) == {'bar.csv', 'csv-file.csv'}
|
|
1123 | 1123 |
call_command('cron', 'daily') |
1124 |
assert os.listdir(other_dir) == ['bar.csv', 'csv-file.csv']
|
|
1124 |
assert set(os.listdir(other_dir)) == {'bar.csv', 'csv-file.csv'}
|
|
1125 | 1125 | |
1126 | 1126 |
# unknown file |
1127 | 1127 |
csvdata.csv_file.name = 'csvdatasource/%s/bar.csv' % csvdata.slug |
1128 |
- |