forked from indymedia/epicyon
Don't use tmp for tests
parent
068f3b448b
commit
d879d20824
3
tests.py
3
tests.py
|
@ -1772,7 +1772,7 @@ def testGetStatusNumber():
|
|||
|
||||
def testJsonString() -> None:
|
||||
print('testJsonString')
|
||||
filename = '/tmp/test.json'
|
||||
filename = '.epicyon_tests_testJsonString.json'
|
||||
messageStr = "Crème brûlée यह एक परीक्षण ह"
|
||||
testJson = {
|
||||
"content": messageStr
|
||||
|
@ -1783,6 +1783,7 @@ def testJsonString() -> None:
|
|||
assert receivedJson['content'] == messageStr
|
||||
encodedStr = json.dumps(testJson, ensure_ascii=False)
|
||||
assert messageStr in encodedStr
|
||||
os.remove(filename)
|
||||
|
||||
|
||||
def testSaveLoadJson():
|
||||
|
|
Loading…
Reference in New Issue