From 670204fec080bd3cab971e9c9870a41795ade413 Mon Sep 17 00:00:00 2001
From: Dan Jones <dan.jones@noc.ac.uk>
Date: Tue, 21 Feb 2023 10:23:22 +0000
Subject: [PATCH] fix: remove old fixtures/features before copy

copytree fails if destination already exists
---
 copy_tests.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/copy_tests.py b/copy_tests.py
index 631c831..f6c33a4 100644
--- a/copy_tests.py
+++ b/copy_tests.py
@@ -1,9 +1,10 @@
 import os
-from shutil import copytree
+from shutil import copytree, rmtree
 import site 
 
 
 def copy_directory(src, dest, directory):
+    rmtree(os.path.join(dest, directory))
     copytree(os.path.join(src, directory), os.path.join(dest, directory))
 
 
-- 
GitLab