Cleanup: pep8
This commit is contained in:
@@ -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."""
|
||||
|
||||
|
Reference in New Issue
Block a user