diff options
author | Chandan Singh <csingh43@bloomberg.net> | 2019-11-05 13:40:03 +0000 |
---|---|---|
committer | Chandan Singh <csingh43@bloomberg.net> | 2019-11-05 13:40:03 +0000 |
commit | ab707e87f53249d7f2aac17683254b54196f90ce (patch) | |
tree | d1d2898c6561a8ca362419dce92a6f808d45b4e6 /src/buildstream/testing/_sourcetests/utils.py | |
parent | e06c2295b063245dbdb2397e5bd8c4d0a79ba10d (diff) | |
download | buildstream-chandan/black.tar.gz |
Use 119 line lengthchandan/black
Diffstat (limited to 'src/buildstream/testing/_sourcetests/utils.py')
-rw-r--r-- | src/buildstream/testing/_sourcetests/utils.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/buildstream/testing/_sourcetests/utils.py b/src/buildstream/testing/_sourcetests/utils.py index ca245a57d..1ceefa3ce 100644 --- a/src/buildstream/testing/_sourcetests/utils.py +++ b/src/buildstream/testing/_sourcetests/utils.py @@ -28,10 +28,7 @@ try: import pytest except ImportError: module_name = globals()["__name__"] - msg = ( - "Could not import pytest:\n" - "To use the {} module, you must have pytest installed.".format(module_name) - ) + msg = "Could not import pytest:\n" "To use the {} module, you must have pytest installed.".format(module_name) raise ImportError(msg) from buildstream import _yaml @@ -77,11 +74,7 @@ def add_plugins_conf(project, plugin_kind): if plugin_package is not None: project_conf["plugins"] = [ - { - "origin": "pip", - "package-name": plugin_package, - "sources": {plugin_kind: 0,}, - }, + {"origin": "pip", "package-name": plugin_package, "sources": {plugin_kind: 0,},}, ] _yaml.roundtrip_dump(project_conf, project_conf_file) |