File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
1
"""Test timetracking module"""
2
+ from time import time
2
3
import pandas
3
4
4
5
from tuttle import timetracking
5
6
6
7
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
+
17
16
pass
18
17
19
18
You can’t perform that action at this time.
0 commit comments