1
0
mirror of https://github.com/badges/shields.git synced 2025-04-18 19:44:04 +03:00
shields/services/pypi/pypi-types.tester.js
Danny Yang 94909ab29d
Mark Stubs-only packages with [PypiTypes] badge (#10864)
* 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

* check Typing :: Stubs Only

* change test package to typeshed

---------

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>
2025-02-02 17:12:45 +00:00

19 lines
552 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 (stubs)')
.get('/types-requests.json')
.expectBadge({ label: 'types', message: 'stubs' })
t.create('types (invalid)')
.get('/not-a-package.json')
.expectBadge({ label: 'types', message: 'package or version not found' })