Skip to content

Commit

Permalink
Clear Cupcake configuration file before each test
Browse files Browse the repository at this point in the history
  • Loading branch information
thejohnfreeman committed Nov 3, 2024
1 parent 8bb25fd commit f83d559
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def test(self, params, source_dir, build_dir):

class Cupcake:
def install(self, params, source_dir, special=False):
(root / source_dir / '.cupcake.toml').unlink(missing_ok=True)
with tempfile.TemporaryDirectory() as build_dir:
subprocess.run(
[
Expand All @@ -100,6 +101,7 @@ def install(self, params, source_dir, special=False):
yield (source_dir, build_dir)

def test(self, params, source_dir, build_dir):
(root / source_dir / '.cupcake.toml').unlink(missing_ok=True)
subprocess.run([
'cupcake', 'test',
'--source-dir', root / source_dir,
Expand Down

0 comments on commit f83d559

Please sign in to comment.