1
0
mirror of https://github.com/badges/shields.git synced 2025-04-20 06:47:51 +03:00
shields/services/pypi/pypi-types.tester.js
Danny Yang bf91e268d6
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>
2024-12-31 16:33:36 +00:00

15 lines
441 B
JavaScript

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' })