Skip to content

Commit c0d4a0c

Browse files
committed
chore(tests): import and formatting cleanup
1 parent 6f1967d commit c0d4a0c

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

tests/commands/time/test_convert.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import pytest
22

33
from compiler_admin import RESULT_SUCCESS
4-
from compiler_admin.commands.time.convert import (
5-
__name__ as MODULE,
6-
CONVERTERS,
7-
_get_source_converter,
8-
convert,
9-
)
4+
from compiler_admin.commands.time.convert import CONVERTERS
5+
from compiler_admin.commands.time.convert import __name__ as MODULE
6+
from compiler_admin.commands.time.convert import _get_source_converter, convert
107
from compiler_admin.services.harvest import CONVERTERS as HARVEST_CONVERTERS
118
from compiler_admin.services.toggl import CONVERTERS as TOGGL_CONVERTERS
129

tests/commands/time/test_download.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
from datetime import datetime
2+
23
import pytest
34

45
from compiler_admin import RESULT_SUCCESS
5-
from compiler_admin.commands.time.download import (
6-
__name__ as MODULE,
7-
TOGGL_COLUMNS,
8-
TZINFO,
9-
download,
10-
prior_month_end,
11-
prior_month_start,
12-
)
6+
from compiler_admin.commands.time.download import TOGGL_COLUMNS, TZINFO
7+
from compiler_admin.commands.time.download import __name__ as MODULE
8+
from compiler_admin.commands.time.download import download, prior_month_end, prior_month_start
139

1410

1511
@pytest.fixture
@@ -112,7 +108,7 @@ def test_download_default(cli_runner, mock_download_time_entries):
112108

113109

114110
def test_download_client_envvar(cli_runner, monkeypatch, mock_download_time_entries):
115-
monkeypatch.setenv("TOGGL_CLIENT_ID", 1234)
111+
monkeypatch.setenv("TOGGL_CLIENT_ID", "1234")
116112

117113
result = cli_runner.invoke(download, [])
118114

0 commit comments

Comments
 (0)