mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 11:41:08 -03:30
Fix flake8 E302 errors.
This commit is contained in:
@@ -6,12 +6,14 @@ from awx.api.views import (
|
||||
JobTemplateLabelList,
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_response_new(mocker):
|
||||
m = mocker.patch('awx.api.views.Response.__new__')
|
||||
m.return_value = m
|
||||
return m
|
||||
|
||||
|
||||
class TestApiV1RootView:
|
||||
def test_get_endpoints(self, mocker, mock_response_new):
|
||||
endpoints = [
|
||||
@@ -54,6 +56,7 @@ class TestApiV1RootView:
|
||||
for endpoint in endpoints:
|
||||
assert endpoint in data_arg
|
||||
|
||||
|
||||
class TestJobTemplateLabelList:
|
||||
def test_inherited_mixin_unattach(self):
|
||||
with mock.patch('awx.api.generics.DeleteLastUnattachLabelMixin.unattach') as mixin_unattach:
|
||||
|
||||
Reference in New Issue
Block a user