File: Skip-tests-that-require-installed-sunpy-plugin.patch

package info (click to toggle)
sunpy 6.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 11,556 kB
  • sloc: python: 39,355; ansic: 1,714; makefile: 36
file content (42 lines) | stat: -rw-r--r-- 1,344 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From: Ole Streicher <olebole@debian.org>
Date: Mon, 27 May 2024 08:51:01 +0200
Subject: Skip tests that require installed sunpy plugin

---
 sunpy/util/tests/test_sysinfo.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sunpy/util/tests/test_sysinfo.py b/sunpy/util/tests/test_sysinfo.py
index 075c899..3dee5c8 100644
--- a/sunpy/util/tests/test_sysinfo.py
+++ b/sunpy/util/tests/test_sysinfo.py
@@ -1,3 +1,5 @@
+import pytest
+
 from packaging.requirements import Requirement
 
 from sunpy.util.sysinfo import (
@@ -49,6 +51,7 @@ EXTRA_ALL_GROUPS = [
     'visualization',
 ]
 
+@pytest.mark.xfail(reason="Plugin not installed during test")
 def test_find_dependencies():
     """
     This is ran in several test environments with varying dependencies installed.
@@ -60,6 +63,7 @@ def test_find_dependencies():
         assert package in installed
 
 
+@pytest.mark.xfail(reason="Plugin not installed during test")
 def test_missing_dependencies_by_extra():
     missing = missing_dependencies_by_extra()
     for group in EXTRA_ALL_GROUPS:
@@ -95,6 +99,7 @@ def test_format_requirement_string():
     assert format_requirement_string(package3) == 'Missing test-package>=1.1.1'
 
 
+@pytest.mark.xfail(reason="Plugin not installed during test")
 def test_system_info(capsys):
     system_info()
     captured = capsys.readouterr()