mirror of
https://github.com/badges/shields.git
synced 2025-11-06 14:09:31 +03:00
Split [pypi] tests (#3704)
* Split [pypi] tests * Changed filenames to match previous class names
This commit is contained in:
committed by
Caleb Cartwright
parent
6cbc7b587a
commit
102db63d46
22
services/pypi/pypi-implementation.tester.js
Normal file
22
services/pypi/pypi-implementation.tester.js
Normal file
@@ -0,0 +1,22 @@
|
||||
'use strict'
|
||||
|
||||
const t = (module.exports = require('../tester').createServiceTester())
|
||||
|
||||
t.create('implementation (valid, package version in request)')
|
||||
.get('/beehive/1.0.json')
|
||||
.expectBadge({ label: 'implementation', message: 'cpython | jython | pypy' })
|
||||
|
||||
t.create('implementation (valid, no package version specified)')
|
||||
.get('/numpy.json')
|
||||
.expectBadge({ label: 'implementation', message: 'cpython' })
|
||||
|
||||
t.create('implementation (not specified)')
|
||||
.get('/chai/1.1.2.json')
|
||||
.expectBadge({ label: 'implementation', message: 'cpython' })
|
||||
|
||||
t.create('implementation (invalid)')
|
||||
.get('/not-a-package.json')
|
||||
.expectBadge({
|
||||
label: 'implementation',
|
||||
message: 'package or version not found',
|
||||
})
|
||||
Reference in New Issue
Block a user