Skip to content

Commit 4bfe287

Browse files
authored
fix test_group_2 FILE_SEARCH test case; should be in descending order by file_size
1 parent e6b52f3 commit 4bfe287

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

practice_assessments/file_storage/test_simulation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_group_1(self):
4343

4444
def test_group_2(self):
4545
output = simulate_coding_framework(self.test_data_2)
46-
self.assertEqual(output, ["uploaded Foo.txt", "uploaded Bar.csv", "uploaded Baz.pdf", "found [Bar.csv, Baz.pdf]"])
46+
self.assertEqual(output, ["uploaded Foo.txt", "uploaded Bar.csv", "uploaded Baz.pdf", "found [Baz.pdf, Bar.csv]"])
4747

4848
def test_group_3(self):
4949
output = simulate_coding_framework(self.test_data_3)
@@ -54,4 +54,4 @@ def test_group_4(self):
5454
self.assertEqual(output, ["uploaded at Initial.txt", "uploaded at Update1.txt", "got at Initial.txt", "copied at Update1.txt to Update1Copy.txt", "uploaded at Update2.txt", "rollback to 2021-07-01T12:10:00", "got at Update1.txt", "got at Initial.txt", "found at [Update1.txt, Update1Copy.txt, Update2.txt]", "got at Update2.txt"])
5555

5656
if __name__ == '__main__':
57-
unittest.main()
57+
unittest.main()

0 commit comments

Comments
 (0)