From 2a055859474def6a84757616644bdc5f0e226726 Mon Sep 17 00:00:00 2001 From: Peter surface book 2 Date: Sat, 12 Dec 2020 16:12:32 -0800 Subject: [PATCH] Use pytest fixture for temp_file and write EMD files for tests. --- tests/test_EMD.py | 87 ++++++++++++++++++++++------------------------- 1 file changed, 41 insertions(+), 46 deletions(-) diff --git a/tests/test_EMD.py b/tests/test_EMD.py index 099f873..eb2f60b 100644 --- a/tests/test_EMD.py +++ b/tests/test_EMD.py @@ -9,26 +9,12 @@ from xicam.NCEM.ingestors.EMDPlugin import ingest_NCEM_EMD, _get_slice from databroker.in_memory import BlueskyInMemoryCatalog -# TODO: move file creation to fixture - @pytest.fixture -def EMD_path(): - """ - Write a small Berkeley EMD file to a tempfile - - """ - #return "/home/rp/data/NCEM/Acquisition_18.emd" - dd, _, _ = np.mgrid[0:30, 0:40, 0:50] - dd = dd.astype('