mirror of
https://github.com/badges/shields.git
synced 2025-11-15 10:01:09 +03:00
Add [PypiTypes] badge (#10774)
* add python typing badge * prettier * Update services/pypi/pypi-typing.service.js Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com> * address comments * rename * fix test --------- Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>
This commit is contained in:
14
services/pypi/pypi-types.tester.js
Normal file
14
services/pypi/pypi-types.tester.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { createServiceTester } from '../tester.js'
|
||||
export const t = await createServiceTester()
|
||||
|
||||
t.create('types (yes)')
|
||||
.get('/pyre-check.json')
|
||||
.expectBadge({ label: 'types', message: 'typed' })
|
||||
|
||||
t.create('types (no)')
|
||||
.get('/z3-solver.json')
|
||||
.expectBadge({ label: 'types', message: 'untyped' })
|
||||
|
||||
t.create('types (invalid)')
|
||||
.get('/not-a-package.json')
|
||||
.expectBadge({ label: 'types', message: 'package or version not found' })
|
||||
Reference in New Issue
Block a user