Falko Schindler 2 gadi atpakaļ
vecāks
revīzija
3cb4484f0b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      tests/test_upload.py

+ 1 - 1
tests/test_upload.py

@@ -23,7 +23,7 @@ def test_uploading_text_file(screen: Screen):
     screen.wait(0.1)
     assert len(results) == 1
     assert results[0].name == test_path1.name
-    assert results[0].type == 'text/x-python-script'
+    assert results[0].type in ['text/x-python', 'text/x-python-script']
     assert results[0].content.read() == test_path1.read_bytes()