• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LudovicRousseau / pyscard-devel / 13137748369
65%

Build:
DEFAULT BRANCH: master
Ran 04 Feb 2025 02:32PM UTC
Jobs 20
Files 76
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Feb 2025 02:23PM UTC coverage: 63.19% (+0.01%) from 63.178%
13137748369

push

github

LudovicRousseau
test_readergroups: allow --iterations=10

The readergroup is global so each test must restore the previous state
(empty reader group).

The error was:
$ pytest --iterations=10 test/test_readergroups.py
============================= test session starts ==============================
platform darwin -- Python 3.12.8, pytest-8.3.3, pluggy-1.5.0
rootdir: /Users/rousseau/Documents/sc/pyscard/pyscard
configfile: pyproject.toml
plugins: run-parallel-0.3.0
collected 7 items

test/test_readergroups.py .Fxx..F                                        [100%]

=================================== FAILURES ===================================
_______________________ test_reader_groups_method_calls ________________________

    def test_reader_groups_method_calls():
        reader_group = smartcard.reader.ReaderGroups.readergroups()
>       assert len(reader_group.instance) == 0, "No reader groups should be pre-defined"
E       AssertionError: No reader groups should be pre-defined
E       assert 1 == 0
E        +  where 1 = len(['a'])
E        +    where ['a'] = <smartcard.reader.ReaderGroups.readergroups object at 0x10ecbb110>.instance

test/test_readergroups.py:17: AssertionError
____________________ test_demonstrate_getting_is_impossible ____________________

    def test_demonstrate_getting_is_impossible():
        """Demonstrate that `.getreadergroups()` returns hard-coded values."""

        reader_group = smartcard.reader.ReaderGroups.readergroups()
        list.append(reader_group.instance, "a")
>       assert reader_group.instance == ["a"]
E       AssertionError: assert ['a', 'a'] == ['a']
E
E         Left contains one more item: 'a'
E         Use -v to get more diff

test/test_readergroups.py:88: AssertionError
=========================== short test summary info ============================
FAILED test/test_readergroups.py::test_reader_groups_method_calls - AssertionError: No reader groups should be pre-defined
FAILED test/test_readergroups.py::test_demonstr... (continued)

103 of 480 branches covered (21.46%)

Branch coverage included in aggregate %.

4441 of 6711 relevant lines covered (66.17%)

4.78 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
91.92
-2.02% test_Exceptions.py
4
63.64
-36.36% test_PCSC.py
Jobs
ID Job ID Ran Files Coverage
1 13137748369.1 04 Feb 2025 02:32PM UTC 67
44.17
GitHub Action Run
2 13137748369.2 04 Feb 2025 02:32PM UTC 67
44.17
GitHub Action Run
3 13137748369.3 04 Feb 2025 02:32PM UTC 67
42.25
GitHub Action Run
4 13137748369.4 04 Feb 2025 02:32PM UTC 67
44.39
GitHub Action Run
5 13137748369.5 04 Feb 2025 02:32PM UTC 67
43.94
GitHub Action Run
6 13137748369.6 04 Feb 2025 02:33PM UTC 67
44.39
GitHub Action Run
7 13137748369.7 04 Feb 2025 02:33PM UTC 67
44.39
GitHub Action Run
8 13137748369.8 04 Feb 2025 02:33PM UTC 67
43.5
GitHub Action Run
9 13137748369.9 04 Feb 2025 02:33PM UTC 67
42.48
GitHub Action Run
10 13137748369.10 04 Feb 2025 02:34PM UTC 67
43.94
GitHub Action Run
11 13137748369.11 04 Feb 2025 02:34PM UTC 67
25.79
GitHub Action Run
12 13137748369.12 04 Feb 2025 02:34PM UTC 67
43.94
GitHub Action Run
13 13137748369.13 04 Feb 2025 02:35PM UTC 67
42.02
GitHub Action Run
14 13137748369.14 04 Feb 2025 02:35PM UTC 67
42.79
GitHub Action Run
15 13137748369.15 04 Feb 2025 02:36PM UTC 67
42.02
GitHub Action Run
16 13137748369.16 04 Feb 2025 02:36PM UTC 67
43.94
GitHub Action Run
17 13137748369.17 04 Feb 2025 02:36PM UTC 67
43.94
GitHub Action Run
18 13137748369.18 04 Feb 2025 02:36PM UTC 67
43.94
GitHub Action Run
19 13137748369.19 04 Feb 2025 02:36PM UTC 67
42.3
GitHub Action Run
20 13137748369.20 04 Feb 2025 02:37PM UTC 67
44.17
GitHub Action Run
Source Files on build 13137748369
  • Tree
  • List 76
  • Changed 5
  • Source Changed 4
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #13137748369
  • 4d72f9dd on github
  • Prev Build on master (#13137714396)
  • Next Build on master (#14132139187)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc