mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 13:48:43 +02:00
detachbranch: Migrate to pop_project_package_from_args()
This commit is contained in:
27
behave/features/detachbranch.feature
Normal file
27
behave/features/detachbranch.feature
Normal file
@@ -0,0 +1,27 @@
|
||||
Feature: `osc detachbranch` command
|
||||
|
||||
|
||||
# common steps for all scenarios
|
||||
Background:
|
||||
Given I set working directory to "{context.osc.temp}"
|
||||
And I execute osc with args "linkpac test:factory/test-pkgA home:Admin"
|
||||
|
||||
|
||||
@destructive
|
||||
Scenario: Run `osc detachbranch <project> <package>`
|
||||
When I execute osc with args "detachbranch home:Admin test-pkgA"
|
||||
Then the exit code is 0
|
||||
|
||||
|
||||
@destructive
|
||||
Scenario: Run `osc detachbranch <project>`
|
||||
When I execute osc with args "detachbranch home:Admin"
|
||||
Then the exit code is 1
|
||||
|
||||
|
||||
@destructive
|
||||
Scenario: Run `osc detachbranch` from a package working copy
|
||||
Given I execute osc with args "co home:Admin/test-pkgA"
|
||||
And I set working directory to "{context.osc.temp}/home:Admin/test-pkgA"
|
||||
When I execute osc with args "detachbranch"
|
||||
Then the exit code is 0
|
Reference in New Issue
Block a user