Add the check for failed adding a path, because of path uniqueness.

This commit is contained in:
2023-11-06 20:13:21 +02:00
parent 9c88462bc0
commit e04b9894b9
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -5,3 +5,8 @@ Feature: Adding an unique path
When I add the path to the database
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
+4
View File
@@ -22,3 +22,7 @@ def path_has_added(context):
assert context.path.path == context.path_str
assert context.exception_raised == False
@then('the exception should occur')
def path_has_not_added(context):
assert context.exception_raised == True