We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af272ae commit c436bf7Copy full SHA for c436bf7
2 files changed
tests/test_cli.py
@@ -545,6 +545,7 @@ def test_multiple_outfiles():
545
out, err, exitcode = helpers.cli_call(command)
546
assert exitcode == 0
547
548
+
549
def test_file_variable_is_set():
550
"""
551
Tests that cq-cli sets the __file__ variable for the model script.
@@ -566,4 +567,4 @@ def test_file_variable_is_set():
566
567
]
568
569
- assert("__file__=" in out.decode())
570
+ assert "__file__=" in out.decode()
tests/testdata/file_var.py
@@ -1,7 +1,7 @@
1
import cadquery as cq
2
3
# print info about the __file__ variable to stdout so the test can check it
4
-if '__file__' in locals():
+if "__file__" in locals():
5
print(f"__file__={__file__}")
6
else:
7
print("__FILE__ not set")
0 commit comments