Skip to content

Commit 2b59080

Browse files
committed
Format with black
1 parent fa39958 commit 2b59080

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

tests/test_issue2574/Snakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
configfile: "config.yaml"
2+
3+
24
X = config["unexisting_key"]
35

46
print(1)

tests/test_linting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_lint(lint, case):
4545
assert e.output.decode().strip()
4646
if "not_used_params" in lint.name:
4747
# Check that the correct line number is reported
48-
assert 'line 3' in e.output.decode().strip()
48+
assert "line 3" in e.output.decode().strip()
4949
else:
5050
print(e.output.decode().strip(), file=sys.stderr)
5151
raise e

tests/tests.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,13 +2051,17 @@ def test_issue1256():
20512051
def test_issue2574():
20522052
snakefile = os.path.join(dpath("test_issue2574"), "Snakefile")
20532053
configfile = os.path.join(dpath("test_issue2574"), "config.yaml")
2054-
p = subprocess.Popen(f"snakemake -s {snakefile} --configfile {configfile} --lint",
2055-
shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
2054+
p = subprocess.Popen(
2055+
f"snakemake -s {snakefile} --configfile {configfile} --lint",
2056+
shell=True,
2057+
stdout=subprocess.PIPE,
2058+
stderr=subprocess.PIPE,
2059+
)
20562060
stdout, stderr = p.communicate()
20572061
stderr = stderr.decode()
20582062
assert p.returncode == 1
20592063
assert "KeyError" in stderr
2060-
assert "line 2," in stderr
2064+
assert "line 4," in stderr
20612065

20622066

20632067
def test_resource_string_in_cli_or_profile():

0 commit comments

Comments
 (0)