Projet

Général

Profil

0001-tests-allow-any-order-in-csv-files-listdir-65552.patch

Thomas Noël, 23 mai 2022 10:20

Télécharger (1,08 ko)

Voir les différences:

Subject: [PATCH] tests: allow any order in csv files listdir (#65552)

 tests/test_csv_datasource.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
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
-