File: 0001-Disable-tests-using-the-network.patch

package info (click to toggle)
tomoscan 2.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,308 kB
  • sloc: python: 18,401; makefile: 5
file content (44 lines) | stat: -rw-r--r-- 1,430 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From: Roland Mas <roland.mas@entierement.net>
Date: Wed, 28 Jun 2023 16:12:52 +0200
Subject: Disable tests using the network

---
 tomoscan/tests/test_factory.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tomoscan/tests/test_factory.py b/tomoscan/tests/test_factory.py
index a99bc36..1884e01 100644
--- a/tomoscan/tests/test_factory.py
+++ b/tomoscan/tests/test_factory.py
@@ -14,6 +14,7 @@ from tomoscan.scanbase import TomoScanBase
 from tomoscan.tests.datasets import GitlabDataset
 
 
+@pytest.mark.skip(reason="No network access")
 def test_scan_edf():
     """can we create a TomoScanBase object from a folder containing a
     valid .edf acquisition"""
@@ -22,6 +23,7 @@ def test_scan_edf():
     assert isinstance(scan, EDFTomoScan)
 
 
+@pytest.mark.skip(reason="No network access")
 def test_one_nx():
     """Can we create a TomoScanBase from a .nx master file containing
     one acquisition"""
@@ -33,6 +35,7 @@ def test_one_nx():
     assert scan.entry == "/entry"
 
 
+@pytest.mark.skip(reason="No network access")
 def test_one_two_nx():
     """Can we create a TomoScanBase from a .nx master file containing
     two acquisitions"""
@@ -44,6 +47,7 @@ def test_one_two_nx():
     assert scan.entry == "/entry0000"
 
 
+@pytest.mark.skip(reason="No network access")
 def test_two_nx():
     """Can we create two TomoScanBase from a .nx master file containing
     two acquisitions using the Factory"""