Stephan Kulow
a1f7a16e6f
tests: Fix api_tests to mock attribute not mtime
2022-03-04 11:11:42 +01:00
Stephan Kulow
00af16cc80
tests: Create OSRT:FreezeTime for all tests
2022-03-04 09:48:06 +01:00
Stephan Kulow
aaab4af930
Target F401 - Unused imports
2022-02-18 18:29:27 +01:00
Stephan Kulow
f86579642b
Target E501 - Line too long
...
https://www.flake8rules.com/rules/E501.html - but 79 characters is a
joke
2022-02-18 18:17:27 +01:00
Stephan Kulow
f38bd3a7ed
Target E128 - Continuation line under-indented for visual indent
...
https://www.flake8rules.com/rules/E128.html
2022-02-18 17:35:33 +01:00
Stephan Kulow
27c364b0c9
Target E251 - Unexpected spaces around keyword
...
https://www.flake8rules.com/rules/E251.html
2022-02-18 17:28:13 +01:00
Stephan Kulow
d8f5d0874e
Remove E201 - Whitespace after '('
...
https://www.flake8rules.com/rules/E201.html
2022-02-18 17:23:19 +01:00
Stephan Kulow
54079e949f
Target E202 - Whitespace before ')'
...
https://www.flake8rules.com/rules/E202.html
2022-02-18 17:18:29 +01:00
Stephan Kulow
529d1dafae
Target E302 - add two comment lines before class
2022-02-18 17:15:48 +01:00
Stephan Kulow
4e9c8eabbe
Target E305 - Have two empty lines of a class
2022-02-18 17:11:46 +01:00
Stephan Kulow
579145b52c
Target F841 - Remove unused variables
2022-02-18 17:01:38 +01:00
Stephan Kulow
0561e06cb1
Target E261 - two spaces before inline comment
2022-02-18 16:39:16 +01:00
Stephan Kulow
5df665ccc5
Targeting E123 - Closing bracket does not match indentation
...
https://www.flake8rules.com/rules/E123.html
2022-02-18 15:52:47 +01:00
Stephan Kulow
f705a24db1
Only have one statement in a line E701
...
https://www.flake8rules.com/rules/E701.html
2022-02-18 13:42:57 +01:00
Stephan Kulow
52dbb52b7f
Merge pull request #2703 from coolo/drop_etree
...
Harmonize imports on using lxml for XML parsing
2022-02-18 12:50:18 +01:00
Stephan Kulow
1152d4c419
Remove bare excepts - https://www.flake8rules.com/rules/E722.html
...
The bare except in osc-credentials lead me to remove it and the scripts
using it
2022-02-18 12:03:56 +01:00
Stephan Kulow
e52dc6ce2b
Harmonize imports on using lxml for XML parsing
2022-02-18 11:16:01 +01:00
Stephan Kulow
cf2c496116
Introduce --remove-exclusion for staging select
...
The API errors with that option if a request is ignored, so we have to
support it.
Fixes #2374
2022-02-14 13:59:42 +01:00
Ancor Gonzalez Sosa
4991dbce07
Fix tests
2021-10-01 14:56:50 +02:00
Josef Reidinger
8bef4c3cf2
check_source: Fix revert case for patch detection (fix#2640)
2021-09-23 10:58:23 +02:00
Stephan Kulow
a8f7146baf
Remove E713 offense from flaker
2021-09-21 14:20:08 +02:00
Ancor Gonzalez Sosa
6540e8baad
Test to showcase a submit request to SLE
2021-09-16 16:47:09 +02:00
Ancor Gonzalez Sosa
57abe5728b
Merge pull request #2626 from ancorgs/obslocal_refactor
...
Small OBSLocal refactoring
2021-09-16 15:32:49 +02:00
Ancor Gonzalez Sosa
2213e2c89c
Fix typo in documentation
2021-09-16 14:59:11 +02:00
Ancor Gonzalez Sosa
3d466b2b19
OBSLocal: functions to easily manage several review bots
2021-09-15 15:55:16 +02:00
Ancor Gonzalez Sosa
c9ff2171c3
OBSLocal: rename assertReviewBot to assertReviewScript
...
The function fully relies on the content of the script attribute and all other
functions that do so contain "script" in the name instead of "bot".
2021-09-15 15:08:11 +02:00
Ancor Gonzalez Sosa
8c1cac7d76
OBSLocal: improve documentation about scripts and asserts
2021-09-15 15:07:41 +02:00
Josef Reidinger
877432d24a
Merge pull request #2630 from openSUSE/test_fixes
...
fix deprecation warning
2021-09-10 20:52:33 +02:00
Ancor Gonzalez Sosa
d31398e85a
OBSLocal: small reorganization
2021-09-09 20:58:26 +02:00
Ancor Gonzalez Sosa
7f377f082f
Extract useful stuff to a base OBSLocal.StagingWorkflow class
2021-09-09 20:58:26 +02:00
Ancor Gonzalez Sosa
ca3eb87931
OBSLocal: clarify some aspects of attributes management
2021-09-09 20:58:17 +02:00
Ancor Gonzalez Sosa
8864e9ccee
Rename test file to ensure it is executed in CI
2021-09-09 15:07:34 +02:00
Ancor Gonzalez Sosa
28c771927a
Rename OBSLocal.StagingWorkflow to OBSLocal.FactoryWorkflow
2021-09-09 15:07:34 +02:00
José Iván López González
3db6e4b528
Add some comments
2021-09-07 13:17:04 +01:00
José Iván López González
c74900f3b9
Create ProductVersion attribute
2021-09-07 13:17:04 +01:00
José Iván López González
352ce10c24
Remove attributes when destroying a workflow
2021-09-07 13:16:57 +01:00
Josef Reidinger
f383bb8116
do not use oscrc from fixtures (should fix #1989 )
2021-09-03 16:53:09 +02:00
Ancor Gonzalez Sosa
827ecacf45
Test to showcase a submit request to Factory
2021-08-19 16:29:24 +02:00
Ancor Gonzalez Sosa
b188340266
OBSLocal: top-level classes documentation to clarify the scope
2021-08-05 12:16:22 +02:00
Martin Vidner
b536914570
Point to osc.core to compare the APIs
2021-08-05 10:59:52 +02:00
Martin Vidner
73b91a6668
More improvements in the OBSLocal.py documentation
2021-08-05 10:18:25 +02:00
Martin Vidner
de330e42b3
In OBSLocal.StagingWorkflow.submit_package, package may not be None
...
did not make sense; i've checked all call sites
2021-08-05 10:17:33 +02:00
Ancor Gonzalez Sosa
f85c1b46b6
Some convenience extensions to OBSLocal
2021-08-04 17:25:46 +02:00
Ancor Gonzalez Sosa
038bfef67b
OBSLocal: improved management of meta
2021-08-03 13:00:01 +02:00
Ancor Gonzalez Sosa
86e9f3ad22
Tiny fix in check_source_test.py
2021-08-03 12:59:59 +02:00
Ancor Gonzalez Sosa
db9dbd4ecb
Improvements in the OBSLocal.py documentation
2021-08-03 12:55:05 +02:00
Ancor Gonzalez Sosa
ab1baf665d
Convert OBSLocal documentation to reStructured Text
2021-08-03 12:55:05 +02:00
Josef Reidinger
f16c803e7c
document OBSLocal.py
2021-08-03 12:55:05 +02:00
Josef Reidinger
12dc09c900
Add test for inherit maintainer role
...
Inherited maintainer role is explicitelly ignored to force setting
of maintainer to required user. The test verify behavior and
allows easier future changes of such behavior.
2021-07-28 16:48:39 +02:00
Josef Reidinger
75226473fc
Avoid creation of duplicate add_role requests ( fixes #2609 )
2021-07-28 09:51:28 +02:00