Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ test: ## run tests quickly with the default Python
py.test

install: clean ## install the package to the active Python's site-packages
python setup.py install
pip install -e .
# pip install -r requirements.txt
pip install -r dev-requirements.txt

clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts

Expand All @@ -61,3 +63,6 @@ clean-test: ## remove test and coverage artifacts
rm -f .coverage
rm -fr htmlcov/
rm -fr .pytest_cache

venv: ## Set up a new virtualenvironment
test -d .venv || virtualenv .venv --prompt='(toggl) '
2 changes: 2 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
pytest
black
jupyterlab
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
description="Toggl datawrangling in python.",
packages=find_packages(),
install_requires=[
"certifi==2018.1.18",
"pandas==0.22.0",
"pyaml==17.12.1",
"dateparser==0.6.0",
"certifi",
"pandas",
"pyaml",
"dateparser",
],
)
15 changes: 3 additions & 12 deletions tests/test_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ def test_static_endpoints():
assert Endpoints.REPORT_SUMMARY == "https://toggl.com/reports/api/v2/summary"
assert Endpoints.START_TIME == "https://www.toggl.com/api/v8/time_entries/start"
assert Endpoints.TIME_ENTRIES == "https://www.toggl.com/api/v8/time_entries"
assert (
Endpoints.CURRENT_RUNNING_TIME
== "https://www.toggl.com/api/v8/time_entries/current"
)
assert Endpoints.CURRENT_RUNNING_TIME == "https://www.toggl.com/api/v8/time_entries/current"
assert Endpoints.REPORT_WEEKLY == "https://toggl.com/reports/api/v2/weekly"


Expand All @@ -21,14 +18,8 @@ def test_stop_time():


def test_workspacde_projects():
assert (
Endpoints.WORKSPACE_PROJECTS(1)
== "https://www.toggl.com/api/v8/workspaces/1/projects"
)
assert Endpoints.WORKSPACE_PROJECTS(1) == "https://www.toggl.com/api/v8/workspaces/1/projects"


def test_client_projects():
assert (
Endpoints.CLIENT_PROJECTS(1)
== "https://www.toggl.com/api/v8/clients/1/projects"
)
assert Endpoints.CLIENT_PROJECTS(1) == "https://www.toggl.com/api/v8/clients/1/projects"
1 change: 0 additions & 1 deletion toggl/intacct/intacct.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import yaml

import toggl

INTACCT_CODE_MAPPING_FILENAME = "code_mapping.yml"
Expand Down