Cleanup: pep8

This commit is contained in:
Campbell Barton
2021-07-06 12:05:27 +10:00
parent 36584bbc2d
commit 432bfbf7a3
48 changed files with 89 additions and 46 deletions

View File

@@ -10,12 +10,14 @@ from typing import Dict, List
from .test import TestCollection
def get_build_hash(args: None) -> str:
import bpy
import sys
build_hash = bpy.app.build_hash.decode('utf-8')
return '' if build_hash == 'Unknown' else build_hash
@dataclass
class TestEntry:
"""Test to run, a combination of revision, test and device."""
@@ -42,6 +44,7 @@ class TestEntry:
for field in self.__dataclass_fields__:
setattr(self, field, json_dict[field])
class TestQueue:
"""Queue of tests to be run or inspected. Matches JSON file on disk."""
@@ -99,6 +102,7 @@ class TestQueue:
with open(self.filepath, 'w') as f:
json.dump(json_entries, f, indent=2)
class TestConfig:
"""Test configuration, containing a subset of revisions, tests and devices."""