Update the test to test models in a memory database.

Add fixtures in the environment.
This commit is contained in:
2025-01-07 22:04:48 +02:00
parent 0abefda95a
commit c8d2b84cfc
4 changed files with 82 additions and 33 deletions
+33
View File
@@ -0,0 +1,33 @@
Feature: Creating the source
@fixture.in_memory_database
@fixture.backup_plan_repository
Scenario Outline: Create an new unique backup plan
Given the label "<label>"
And the path "<source_path>"
And the destinations <destinations>
When I create the backup plan
Then it should be created successfully
Examples:
| label | source_path | destinations |
| usb | /mnt/usb | [] |
| db | /db | ["/backup/db"] |
| temp | /tmp | ["/backup/tmp1", "/backup/tmp2"] |
@fixture.in_memory_database
@fixture.backup_plan_repository
Scenario Outline: Create an new unique backup plan
Given the label "<label>"
And the path "<source_path>"
And the destinations <destinations>
When I create the backup plan
When I delete the backup plan
Then it should be deleted successfully
Examples:
| label | source_path | destinations |
| usb | /mnt/usb | [] |
| db | /db | ["/backup/db"] |
| temp | /tmp | ["/backup/tmp1", "/backup/tmp2"] |