GithubHelp home page GithubHelp logo

Comments (4)

ralphbean avatar ralphbean commented on June 23, 2024

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.

ralphbean avatar ralphbean commented on June 23, 2024

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.

fradeve avatar fradeve commented on June 23, 2024

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.

ralphbean avatar ralphbean commented on June 23, 2024

Sure. Thanks @fradeve :)

from taskw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.