Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Jul 22, 2024
1 parent c5ddb8a commit a9eed84
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,10 @@ def test_unsafe_cwd():

p = Path(d)
unsafe = p / "foo#bar" / "foo#qux"
file = unsafe / "foo.py"
unsafe.mkdir(parents=True)
file.write_text("np.sin")
result = pipe([BIN_DIR + "/py"], cwd=unsafe, stdin="np")
result = pipe([BIN_DIR + "/py"], cwd=unsafe, stdin="os")
assert "Unsafe" not in result
assert result == "[PYFLYBY] import numpy as np"
assert result == "[PYFLYBY] import os"


def test_tidy_imports_filename_action_replace_1():
Expand Down

0 comments on commit a9eed84

Please sign in to comment.