GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python-ticket/features/ticket_links.feature at master · sjaandi-project/python-ticket Expand file tree/ Copy pathticket_links.featureMore file actions 58 lines (50 loc) · 2.42 KB / Copy pathticket_links.featureFile metadata and controls58 lines (50 loc) · 2.42 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 Feature: Ticket Links As a user I want to create symmetric links between tickets So that I can track related tickets Background: Given a clean tickets directory And a ticket exists with ID "link-0001" and title "First ticket" And a ticket exists with ID "link-0002" and title "Second ticket" And a ticket exists with ID "link-0003" and title "Third ticket" Scenario: Link two tickets When I run "ticket link link-0001 link-0002" Then the command should succeed And the output should contain "Added 2 link(s) between 2 tickets" And ticket "link-0001" should have "link-0002" in links And ticket "link-0002" should have "link-0001" in links Scenario: Link three tickets When I run "ticket link link-0001 link-0002 link-0003" Then the command should succeed And the output should contain "Added 6 link(s) between 3 tickets" And ticket "link-0001" should have "link-0002" in links And ticket "link-0001" should have "link-0003" in links And ticket "link-0002" should have "link-0001" in links And ticket "link-0002" should have "link-0003" in links And ticket "link-0003" should have "link-0001" in links And ticket "link-0003" should have "link-0002" in links Scenario: Link is idempotent Given ticket "link-0001" is linked to "link-0002" When I run "ticket link link-0001 link-0002" Then the command should succeed And the output should be "All links already exist" Scenario: Unlink two tickets Given ticket "link-0001" is linked to "link-0002" When I run "ticket unlink link-0001 link-0002" Then the command should succeed And the output should be "Removed link: link-0001 <-> link-0002" And ticket "link-0001" should not have "link-0002" in links And ticket "link-0002" should not have "link-0001" in links Scenario: Unlink non-existent link When I run "ticket unlink link-0001 link-0002" Then the command should fail And the output should be "Link not found" Scenario: Link with non-existent ticket When I run "ticket link link-0001 nonexistent" Then the command should fail And the output should contain "Error: ticket 'nonexistent' not found" Scenario: Partial linking adds only new links Given ticket "link-0001" is linked to "link-0002" When I run "ticket link link-0001 link-0002 link-0003" Then the command should succeed And the output should contain "Added 4 link(s) between 3 tickets" |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |