Closed vignesh1507 closed 3 weeks ago
hey please install linters as suggested in the doc and fix the CI issue
I am not accepting this contribution cause it does not respect the PR rules + the change is not an improvement. If you want to re-use code in tests you should leverage elements of the unittest framework like setUp and not nested functions like you did
Summary of Code Changes
Renamed
Test
class toTestInterface
Fixed
__init__
method**init**
to__init__
Renamed test method
test_validate_playbook_to_execute
totest_validate_playbooks
validate_playbooks
).Added docstrings
TestInterface
class andtest_validate_playbooks
methodRefactored repetitive code into a helper function
create_and_test_playbook
function inside the test methodSimplified exception handling
assertRaises
for negative test caseImproved variable naming
a
tointerface
Restructured test cases
Removed explicit deletion of PlaybookConfig objects
Removed unused import
from django.db.models import QuerySet