Skip to content

Commit e319d9b

Browse files
committed
unit test: import time tracking from toggl
1 parent 64c0312 commit e319d9b

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

tests/test_timetracking.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
"""Test timetracking module"""
2+
from time import time
23
import pandas
34

45
from tuttle import timetracking
56

67

7-
def test_timetracking_import_csv():
8-
"""Test import of time tracking data from csv."""
9-
# data = timetracking.import_from_csv(
10-
# path="tests/data/test_time_tracking_toggl.csv",
11-
# tag_col="Client",
12-
# duration_col="Duration",
13-
# description_col="Description",
14-
# )
15-
# assert not data.empty
16-
# FIXME.
8+
def test_timetracking_import_toggl():
9+
"""Test import of time tracking data from csv exported by Toggl."""
10+
data = timetracking.import_from_spreadsheet(
11+
path="tests/data/test_time_tracking_toggl.csv",
12+
preset=timetracking.TimetrackingSpreadsheetPreset.Toggl,
13+
)
14+
assert not data.empty
15+
1716
pass
1817

1918

0 commit comments

Comments
 (0)