Falko Schindler 2 年之前
父節點
當前提交
3cb4484f0b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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()