Comments (4)
FYI, I'm able to duplicate this failure with:
diff --git a/taskw/test/test_datas.py b/taskw/test/test_datas.py
index 001eb9f..f2f461b 100644
--- a/taskw/test/test_datas.py
+++ b/taskw/test/test_datas.py
@@ -365,6 +365,19 @@ class TestDBShellout(_BaseTestDB):
eq_(len(tasks), 1)
eq_(tasks[0]['id'], 2)
+ def test_add_with_project_string(self):
+ """ https://github.com/ralphbean/taskw/issues/106 """
+ task1 = self.tw.task_add(description='test1', project='project1')
+ task2 = self.tw.task_add(description='test2', project='project_1')
+ task3 = self.tw.task_add(description='test3', project='project_2')
+ tasks = self.tw.filter_tasks({
+ 'description.contains': 'test',
+ })
+ eq_(len(tasks), 3)
+ eq_(tasks[0]['project'], 'project1')
+ eq_(tasks[1]['project'], 'project_1')
+ eq_(tasks[2]['project'], 'project_2')
+
def test_filtering_brace(self):
task1 = self.tw.task_add("[foobar1]")
task2 = self.tw.task_add("[foobar2]")
from taskw.
This seems to be failing at the taskwarrior level (instead of taskw
)...
Does this command work for you?
task add proj:project1 testing
It fails for me.
from taskw.
It fails for me as well, which is quite surprising. Sorry for having assumed that this was a bug in taskw
. I think I should check if this has been reported in TaskWarrior. Shall I close this ticket?
from taskw.
Sure. Thanks @fradeve :)
from taskw.
Related Issues (20)
- UUID parsing of created task fails with recur HOT 1
- taskw in marshaling mode doesn't work with pickle
- Python 3: str(TaskwarriorError(...)): TypeError: __str__ returned non-string (type bytes)
- TypeError: argument of type 'FileNotFoundError' is not iterable
- filter_tasks with multiple uuids HOT 2
- Numeric marshaled values are rounded to the nearest integer HOT 3
- v1.3.0 not uploaded to PyPI HOT 2
- issue adding tasks "UUID has no attribute group" HOT 5
- Unable to update tasks
- `task_add` raises an error, but creates the task HOT 2
- Four test failures on openSUSE Tumbleweed HOT 2
- taskrc includes as relative paths cause FileNotFoundError in taskw
- Fetching a (periodic) task fails - Unable to find report that matches HOT 1
- unnecessary "task --version" 3x to start, 1x for every filter and 2x for every add
- Tag "next" seems not to be added if added as only tag in function add_task HOT 2
- If "annotations" not passed to task_update, it truncates annotations HOT 3
- Marshal=True results in loss of timestamp for annotations.
- Saving task with effort field corrupts the description field.
- Implement a lock file
- Taskwarrior 3.0 support? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taskw.