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

psf / black / 900
96%

Build:
DEFAULT BRANCH: master
Ran 17 May 2020 07:20PM UTC
Jobs 4
Files 8
Run time 22s
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

pending completion
900

push

travis-ci-com

web-flow
Add black-primer unittests (#1426)

* Add black-primer unittests

- Get this tool covered with some decent unittests for all unittests wins
- Have a CLI and lib test class
- Import it from `test_black.py` so we always run tests
- Revert typing asyncio.Queue as Queue[str] so we can work in 3.6
- **mypy**: Until black > 3.6 disallow_any_generics=False for primer code

Test:
- Run tests: `coverage run tests/test_primer.py` or `coverage run -m unittest`
```
(b) cooper-mbp1:black cooper$ coverage report
Name                      Stmts   Miss  Cover
---------------------------------------------
src/black_primer/cli.py      49      8    84%
src/black_primer/lib.py     148     28    81%
tests/test_primer.py        114      1    99%
---------------------------------------------
TOTAL                       311     37    88%
```

* Use ProactorEventLoop for Windows + fix false path for Linux

* Set Windows to use ProactorEventLoop in  to benefit all callers

* sys.platform seems to not having the loop applied - So type ignore and use platform.system() gate

* Have each test loop correctly set to ProactorEventLoop on Windows for < 3.8 too

4499 of 4696 relevant lines covered (95.8%)

2.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 900.1 (TEST_CMD="pre-commit run --all-files") 17 May 2020 07:20PM UTC 0
0.0
Travis Job 900.1
2 900.2 (TEST_CMD="coverage run -m unittest") 17 May 2020 07:20PM UTC 0
95.76
Travis Job 900.2
3 900.3 (TEST_CMD="coverage run -m unittest") 17 May 2020 07:20PM UTC 0
95.76
Travis Job 900.3
4 900.4 (TEST_CMD="coverage run -m unittest") 17 May 2020 07:20PM UTC 0
95.85
Travis Job 900.4
Source Files on build 900
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #900
  • 8acc22f1 on github
  • Prev Build on master (#888)
  • Next Build on master (#1862)
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