mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-29 11:16:14 +01:00
Fix TypeError: SimpleFlag.__init__() got an unexpected keyword argument '_apiurl'
This commit is contained in:
parent
ce1855fbb8
commit
40807ec1d5
13
behave/features/build.feature
Normal file
13
behave/features/build.feature
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Feature: `osc build` command
|
||||||
|
|
||||||
|
|
||||||
|
# common steps for all scenarios
|
||||||
|
Background:
|
||||||
|
Given I set working directory to "{context.osc.temp}"
|
||||||
|
And I execute osc with args "co test:factory/test-pkgA"
|
||||||
|
And I set working directory to "{context.osc.temp}/test:factory/test-pkgA"
|
||||||
|
|
||||||
|
|
||||||
|
Scenario: Run `osc build --just-print-buildroot`
|
||||||
|
When I execute osc with args "build --just-print-buildroot"
|
||||||
|
Then the exit code is 0
|
@ -5,6 +5,10 @@
|
|||||||
|
|
||||||
<person userid="Admin" role="maintainer"/>
|
<person userid="Admin" role="maintainer"/>
|
||||||
|
|
||||||
|
<lock>
|
||||||
|
<disable/>
|
||||||
|
</lock>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<disable/>
|
<disable/>
|
||||||
</build>
|
</build>
|
||||||
|
@ -5,8 +5,8 @@ class SimpleFlag(XmlModel):
|
|||||||
XML_TAG = None
|
XML_TAG = None
|
||||||
XML_TAG_FIELD = "flag"
|
XML_TAG_FIELD = "flag"
|
||||||
|
|
||||||
def __init__(self, flag):
|
def __init__(self, flag, **kwargs):
|
||||||
super().__init__(flag=flag)
|
super().__init__(flag=flag, **kwargs)
|
||||||
|
|
||||||
class SimpleFlagChoices(Enum):
|
class SimpleFlagChoices(Enum):
|
||||||
ENABLE = "enable"
|
ENABLE = "enable"
|
||||||
|
Loading…
Reference in New Issue
Block a user