Skip to content

Commit 6c9a247

Browse files
Fix task alias already used (#7)
- Fix #4, as best as is possible. - Fix a number of other bugs. - Clean-up warnings. - Clean-up code. - Get workable integration test with vcr.
1 parent a47e424 commit 6c9a247

24 files changed

+10325
-56271
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
auth.cfg
33
*.pkl
44
build/
5+
test/fixtures/cassettes/*.json

.pylintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[FORMAT]
2+
max-line-length=120

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ That means that if you create a task in Todoist and then check it off, right now
1515

1616
There are a number dependencies you'll need to install, and the commands to install them are as follows:
1717
```
18-
pip install todoist-python
19-
pip install requests
20-
pip install scriptabit
21-
pip install tzlocal
22-
pip install iso8601
23-
pip install python-dateutil
18+
pip install todoist_api_python requests scriptabit tzlocal iso8601 python-dateutil
2419
```
2520
Finally, you need to add your API tokens to the `Project_Hype-Berry/source/auth.cfg.example` file. You can find your Habitica API User ID and API key by visiting https://habitica.com/user/settings/api while logged in, and your Todoist API token can be found by visiting https://todoist.com/prefs/integrations while logged in. Once you've added these tokens, you should rename the file to `Project_Hype-Berry/source/auth.cfg` (remove the '.example' at the end).
2621

@@ -39,8 +34,15 @@ If you'd like to change how the sync interprets difficulty or priority, please e
3934

4035
## USAGE
4136

42-
Try running `python oneWaySync.py` in your terminal. (You have to run the command from the same directory that auth.cfg exists in).
37+
Try running `python one_way_sync.py` in your terminal. (You have to run the command from the same directory that auth.cfg exists in).
4338

4439
## Credit
4540

4641
This program is a hard fork of [Habitica-Todo](https://github.com/eringiglio/Habitica-todo), with some fixes added. Habitica-Todo has been abandoned by its original author.
42+
43+
# Tests
44+
45+
To run tests, you will need to run the following pip command to install additional dependencies:
46+
```
47+
pip install pytest vcrpy mockito
48+
```

0 commit comments

Comments
 (0)