We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cabac1 commit cefda66Copy full SHA for cefda66
1 file changed
tests/test_OMCPath.py
@@ -76,3 +76,17 @@ def _run_OMCPath_checks(om: OMPython.OMCSessionZMQ):
76
assert p3.parent.is_dir()
77
p3.unlink()
78
assert p3.is_file() is False
79
+
80
81
+def test_OMCPath_write_file(tmpdir):
82
+ om = OMPython.OMCSessionZMQ()
83
84
+ data = "abc # \\t # \" # \\n # xyz"
85
86
+ p1 = om.omcpath_tempdir()
87
+ p2 = p1 / 'test.txt'
88
+ p2.write_text(data=data)
89
90
+ assert data == p2.read_text()
91
92
+ del om
0 commit comments