Skip to content

Commit 59a24d9

Browse files
committed
. d updated markdown snippets
1 parent 32a778e commit 59a24d9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

approvaltests/internals/logs/failed_comparison_log.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
from pathlib import Path
22

3-
from approvaltests.internals.logs.approved_file_log import APPROVAL_TESTS_TEMP_DIRECTORY, ApprovedFilesLog
3+
from approvaltests.internals.logs.approved_file_log import (
4+
APPROVAL_TESTS_TEMP_DIRECTORY,
5+
ApprovedFilesLog,
6+
)
47
from approvaltests.internals.logs.log_commons import LogCommons
58

69

@@ -14,7 +17,6 @@ def clear_log_file() -> None:
1417
def get_failed_comparison_log() -> Path:
1518
return ApprovedFilesLog.get_temp_directory() / ".failed_comparison.log"
1619

17-
1820
@staticmethod
1921
def log(received_file, approved_file):
2022
with FailedComparisonLog.get_failed_comparison_log().open(mode="a") as file:

tests/test_approvaltests_temp_dir.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from approvaltests.internals.logs.log_commons import APPROVAL_TESTS_TEMP_DIRECTORY
22

3+
34
def test_temp_directory_is_setup_automatically():
45
# setup happens automatically
56
gitignore_path = APPROVAL_TESTS_TEMP_DIRECTORY / ".gitignore"

0 commit comments

Comments
 (0)