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

LudovicRousseau / pyscard / 11067079630
67%

Build:
DEFAULT BRANCH: master
Ran 27 Sep 2024 08:18AM UTC
Jobs 16
Files 69
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

27 Sep 2024 08:15AM UTC coverage: 60.788% (+0.3%) from 60.484%
11067079630

push

github

LudovicRousseau
Migrate to pytest features

This PR introduces the following changes:

- Migrate the test suite to use pytest features
- Address a duplicated test name in test_Exceptions.py:
  test_ListReadersException.  The duplicate tests have been merged.

Most of this work was mechanical:

- Remove unittest.TestCase subclass definition lines
- De-dent the class methods
- Remove references to self in the function parameters
- Use regular expressions to search and replace assertions:
  - self.assertEqual(x, y) -> assert x == y
  - self.assertRaises -> pytest.raises
  - self.assertFalse(x) -> assert x is False
  - self.assertIn(x, y) -> assert x in y

Some long strings were wrapped to prepare for the possibility of using
code formatters in the future.

STDOUT capture code was replaced with the pytest capsys fixture, which
simplified the code in test_ATR.py.

This PR prepares for the possibility of consolidating the live tests in
src/smartcard/test/ together with the overall test suite, and using
pytest features to control whether the live tests run or not.

This is only a possibility, not a guarantee, but migrating from unittest
code to pytest code helps pave the way.

91 of 515 branches covered (17.67%)

3257 of 5358 relevant lines covered (60.79%)

3.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11067079630.1 27 Sep 2024 08:18AM UTC 0
39.32
GitHub Action Run
2 11067079630.2 27 Sep 2024 08:18AM UTC 0
39.32
GitHub Action Run
3 11067079630.3 27 Sep 2024 08:18AM UTC 0
36.22
GitHub Action Run
4 11067079630.4 27 Sep 2024 08:19AM UTC 0
39.32
GitHub Action Run
5 11067079630.5 27 Sep 2024 08:19AM UTC 0
39.62
GitHub Action Run
6 11067079630.6 27 Sep 2024 08:19AM UTC 0
39.62
GitHub Action Run
7 11067079630.7 27 Sep 2024 08:19AM UTC 0
39.07
GitHub Action Run
8 11067079630.8 27 Sep 2024 08:19AM UTC 0
39.07
GitHub Action Run
9 11067079630.9 27 Sep 2024 08:19AM UTC 0
39.07
GitHub Action Run
10 11067079630.10 27 Sep 2024 08:19AM UTC 0
36.54
GitHub Action Run
11 11067079630.11 27 Sep 2024 08:20AM UTC 0
39.62
GitHub Action Run
12 11067079630.12 27 Sep 2024 08:20AM UTC 0
36.0
GitHub Action Run
13 11067079630.13 27 Sep 2024 08:20AM UTC 0
39.07
GitHub Action Run
14 11067079630.14 27 Sep 2024 08:20AM UTC 0
39.07
GitHub Action Run
15 11067079630.15 27 Sep 2024 08:20AM UTC 0
36.0
GitHub Action Run
16 11067079630.16 27 Sep 2024 08:21AM UTC 0
39.07
GitHub Action Run
Source Files on build 11067079630
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #11067079630
  • 1e3c4192 on github
  • Prev Build on master (#11066836805)
  • Next Build on master (#11070429305)
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