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

LudovicRousseau / pyscard / 13137691453
67%

Build:
DEFAULT BRANCH: master
Ran 04 Feb 2025 02:28PM 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: 66.13% (-0.03%) from 66.155%
13137691453

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

4438 of 6711 relevant lines covered (66.13%)

4.53 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
86.38
-0.26% .tox/py3.13/Lib/site-packages/smartcard/scard/scard.py
5
87.53
-1.33% .tox/py3.13/lib/python3.13/site-packages/smartcard/scard/scard.py
Jobs
ID Job ID Ran Files Coverage
1 13137691453.1 04 Feb 2025 02:28PM UTC 67
47.17
GitHub Action Run
2 13137691453.2 04 Feb 2025 02:28PM UTC 67
44.89
GitHub Action Run
3 13137691453.3 04 Feb 2025 02:28PM UTC 67
46.92
GitHub Action Run
4 13137691453.4 04 Feb 2025 02:28PM UTC 67
23.75
GitHub Action Run
5 13137691453.5 04 Feb 2025 02:28PM UTC 67
27.73
GitHub Action Run
6 13137691453.6 04 Feb 2025 02:28PM UTC 67
46.92
GitHub Action Run
7 13137691453.7 04 Feb 2025 02:28PM UTC 67
47.17
GitHub Action Run
8 13137691453.8 04 Feb 2025 02:29PM UTC 67
47.17
GitHub Action Run
9 13137691453.9 04 Feb 2025 02:29PM UTC 67
44.63
GitHub Action Run
10 13137691453.10 04 Feb 2025 02:29PM UTC 67
45.15
GitHub Action Run
11 13137691453.11 04 Feb 2025 02:29PM UTC 67
46.65
GitHub Action Run
12 13137691453.12 04 Feb 2025 02:29PM UTC 67
27.3
GitHub Action Run
13 13137691453.13 04 Feb 2025 02:29PM UTC 67
46.65
GitHub Action Run
14 13137691453.14 04 Feb 2025 02:31PM UTC 67
46.65
GitHub Action Run
15 13137691453.15 04 Feb 2025 02:31PM UTC 67
46.65
GitHub Action Run
16 13137691453.16 04 Feb 2025 02:31PM UTC 67
46.65
GitHub Action Run
17 13137691453.17 04 Feb 2025 02:31PM UTC 67
46.65
GitHub Action Run
18 13137691453.18 04 Feb 2025 02:31PM UTC 67
38.3
GitHub Action Run
19 13137691453.19 04 Feb 2025 02:32PM UTC 67
44.63
GitHub Action Run
20 13137691453.20 04 Feb 2025 02:34PM UTC 67
46.92
GitHub Action Run
Source Files on build 13137691453
  • Tree
  • List 76
  • Changed 56
  • Source Changed 56
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #13137691453
  • 4d72f9dd on github
  • Prev Build on master (#12734528230)
  • Next Build on master (#14132208658)
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