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

LudovicRousseau / pyscard / 13137691453 / 3
67%
master: 67%

Build:
DEFAULT BRANCH: master
Ran 04 Feb 2025 02:28PM UTC
Files 67
Run time 2s
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: 46.919% (+0.3%) from 46.59%
13137691453.3

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)

94 of 435 branches covered (21.61%)

1675 of 3570 relevant lines covered (46.92%)

0.47 hits per line

Source Files on job 13137691453.3
  • Tree
  • List 67
  • Changed 56
  • Source Changed 52
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 13137691453
  • 4d72f9dd on github
  • Prev Job for on master (#12734528230.14)
  • Next Job for on master (#14132208658.7)
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