Skip to content

Commit

Permalink
test: Simplify fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Jun 5, 2024
1 parent 0cb3b56 commit e06d2ab
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions diracx-cli/tests/test_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,10 @@

@pytest.fixture
async def jdl_file():
with tempfile.NamedTemporaryFile(
mode="w", encoding="utf-8", delete=False
) as temp_file:
with tempfile.NamedTemporaryFile(mode="w", encoding="utf-8") as temp_file:
temp_file.write(TEST_JDL)
temp_file.flush()
jdl_filename = temp_file.name

yield jdl_filename

os.remove(jdl_filename)
yield temp_file.name


async def test_submit(with_cli_login, jdl_file, capfd):
Expand Down

0 comments on commit e06d2ab

Please sign in to comment.