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

LudovicRousseau / pyscard-devel / 13102383430
65%

Build:
DEFAULT BRANCH: master
Ran 02 Feb 2025 08:55PM 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

02 Feb 2025 08:50PM UTC coverage: 63.205% (+0.03%) from 63.171%
13102383430

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 %.

4444 of 6714 relevant lines covered (66.19%)

4.77 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
85.28
-0.51% .tox/py3.13/Lib/site-packages/smartcard/scard/scard.py
Jobs
ID Job ID Ran Files Coverage
1 13102383430.1 02 Feb 2025 08:55PM UTC 67
44.44
GitHub Action Run
2 13102383430.2 02 Feb 2025 08:55PM UTC 67
44.06
GitHub Action Run
3 13102383430.3 02 Feb 2025 08:55PM UTC 67
42.29
GitHub Action Run
4 13102383430.4 02 Feb 2025 08:55PM UTC 67
44.21
GitHub Action Run
5 13102383430.5 02 Feb 2025 08:55PM UTC 67
44.21
GitHub Action Run
6 13102383430.6 02 Feb 2025 08:55PM UTC 67
40.0
GitHub Action Run
7 13102383430.7 02 Feb 2025 08:55PM UTC 67
44.21
GitHub Action Run
8 13102383430.8 02 Feb 2025 08:55PM UTC 67
44.44
GitHub Action Run
9 13102383430.9 02 Feb 2025 08:55PM UTC 67
42.53
GitHub Action Run
10 13102383430.10 02 Feb 2025 08:55PM UTC 67
44.44
GitHub Action Run
11 13102383430.11 02 Feb 2025 08:56PM UTC 67
42.07
GitHub Action Run
12 13102383430.12 02 Feb 2025 08:56PM UTC 67
43.98
GitHub Action Run
13 13102383430.13 02 Feb 2025 08:56PM UTC 67
43.98
GitHub Action Run
14 13102383430.14 02 Feb 2025 08:56PM UTC 67
43.98
GitHub Action Run
15 13102383430.15 02 Feb 2025 08:56PM UTC 67
25.72
GitHub Action Run
16 13102383430.16 02 Feb 2025 08:56PM UTC 67
43.98
GitHub Action Run
17 13102383430.17 02 Feb 2025 08:57PM UTC 67
43.98
GitHub Action Run
18 13102383430.18 02 Feb 2025 08:57PM UTC 67
43.98
GitHub Action Run
19 13102383430.19 02 Feb 2025 08:57PM UTC 67
41.12
GitHub Action Run
20 13102383430.20 02 Feb 2025 08:59PM UTC 67
42.07
GitHub Action Run
Source Files on build 13102383430
  • Tree
  • List 76
  • Changed 6
  • Source Changed 4
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #13102383430
  • 773876eb on github
  • Prev Build on master (#13089146551)
  • Next Build on master (#13137714396)
  • 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