File: fix-online-tests.patch

package info (click to toggle)
python-fluids 1.0.22-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,980 kB
  • sloc: python: 53,243; f90: 1,033; javascript: 49; makefile: 47
file content (27 lines) | stat: -rw-r--r-- 810 bytes parent folder | download
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
Description: Disable tests requiring online resources
Author: Kurt Kremitzki <kkremitzki@debian.org>
Last-Update: 2021-08-24

--- a/tests/test_design_climate.py
+++ b/tests/test_design_climate.py
@@ -463,6 +463,7 @@
 '''
 
 
+@pytest.mark.skip(reason='requires online resource')
 @pytest.mark.slow
 @pytest.mark.online
 def test_get_station_year_text():
@@ -477,9 +478,10 @@
         get_station_year_text(712650, 99999, 19999999999)
 
 
+@pytest.mark.skip(reason='requires online resource')
 @pytest.mark.slow
 @pytest.mark.online
 @pytest.mark.skipif(not has_geopy, reason='geopy is required')
 def test_geocode():
     latlon = geocode('Fredericton, NB')
-    assert_close(latlon, (45.966425, -66.645813), rtol=5e-4)
\ No newline at end of file
+    assert_close(latlon, (45.966425, -66.645813), rtol=5e-4)