Merge pull request #25 from nix-community/fix-ci

make flake8 happy
This commit is contained in:
Jörg Thalheim 2020-06-30 08:49:08 +01:00 committed by GitHub
commit a46ea78bfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,8 +27,7 @@ class IntegrationTest(unittest.TestCase):
shutil.copytree(TEST_ROOT.joinpath("testenv"), self.testenv) shutil.copytree(TEST_ROOT.joinpath("testenv"), self.testenv)
direnvrc = str(TEST_ROOT.parent.joinpath("direnvrc")) direnvrc = str(TEST_ROOT.parent.joinpath("direnvrc"))
with open(self.testenv.joinpath(".envrc"), "w") as f: with open(self.testenv.joinpath(".envrc"), "w") as f:
f.write(f"source {direnvrc}\n") f.write(f"source {direnvrc}\n" "use nix")
f.write(f"use nix")
def test_direnv(self) -> None: def test_direnv(self) -> None:
run(["direnv", "allow"], cwd=str(self.testenv), env=self.env, check=True) run(["direnv", "allow"], cwd=str(self.testenv), env=self.env, check=True)