Преглед изворни кода

Add mock input file encoding

Arkadiusz Ryś пре 2 година
родитељ
комит
44816a945f
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      tests/test_mock.py

+ 3 - 2
tests/test_mock.py

@@ -22,11 +22,12 @@ client = TestClient(get_application(Configuration(Server("localhost", 8585))))
 def test_post_main():
     requirements = (Path(__file__).parent.parent / Path("data/mock_requirements.txt")).read_text()
     mock_input = {
-        "ctrl": "cout",
+        "ctrl": "cin",
         "input": {
             "din": {
                 "type": "inline",
-                "content": requirements
+                "content": requirements,
+                "encoding": "text/plain"
             }
         }
     }