Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-MrBeam committed Nov 3, 2023
1 parent 263957b commit 83a655e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/migrations/test_migration_Mig006.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import date
import datetime

import pytest
from mock.mock import patch, mock_open
Expand Down Expand Up @@ -114,6 +114,6 @@ def test_migration_did_run(migration006, mock_yaml_safe_dump, mocker):
# Assert
migration006.exec_cmd.assert_any_call(
"sudo cp /home/pi/.octoprint/analytics/usage.yaml /home/pi/.octoprint/analytics/usage.yaml_{}".format(
date.today().strftime("%Y_%m_%d_%H_%M_%S")
datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S")
)
)

0 comments on commit 83a655e

Please sign in to comment.