From 8d16822cb502b1fcdd217980cedeca9724b19c19 Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Thu, 23 Mar 2023 06:06:44 +0300 Subject: [PATCH] add a test for getMediaDirPath() --- tests/test_media.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_media.py b/tests/test_media.py index b667c8e..fde46e8 100755 --- a/tests/test_media.py +++ b/tests/test_media.py @@ -1,4 +1,5 @@ import base64 +import os.path from conftest import ac @@ -49,3 +50,7 @@ def test_deleteMediaFile(session_with_profile_loaded): ac.deleteMediaFile(filename=filename_1) assert ac.retrieveMediaFile(filename=filename_1) is False assert ac.getMediaFilesNames(pattern="_tes*.txt") == [filename_2] + + +def test_getMediaDirPath(session_with_profile_loaded): + assert os.path.isdir(ac.getMediaDirPath())