mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-08-20 05:37:43 +00:00
Add the check for failed adding a path, because of path uniqueness.
This commit is contained in:
@@ -5,3 +5,8 @@ Feature: Adding an unique path
|
|||||||
When I add the path to the database
|
When I add the path to the database
|
||||||
Then the path should be added successfully
|
Then the path should be added successfully
|
||||||
|
|
||||||
|
Scenario: Adding an new path with not uniq path
|
||||||
|
Given a path "/media"
|
||||||
|
When I add the path to the database
|
||||||
|
Then the exception should occur
|
||||||
|
|
||||||
|
|||||||
@@ -22,3 +22,7 @@ def path_has_added(context):
|
|||||||
assert context.path.path == context.path_str
|
assert context.path.path == context.path_str
|
||||||
assert context.exception_raised == False
|
assert context.exception_raised == False
|
||||||
|
|
||||||
|
@then('the exception should occur')
|
||||||
|
def path_has_not_added(context):
|
||||||
|
assert context.exception_raised == True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user