renovate/lib/manager/pip_requirements/__snapshots__/extract.spec.ts.snap
2020-04-08 10:05:16 +02:00

265 lines
6 KiB
Text

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`lib/manager/pip_requirements/extract extractPackageFile() extracts dependencies 1`] = `
Object {
"deps": Array [
Object {
"currentValue": "==0.3.1",
"datasource": "pypi",
"depName": "some-package",
"fromVersion": "0.3.1",
},
Object {
"currentValue": "==1.0.0",
"datasource": "pypi",
"depName": "some-other-package",
"fromVersion": "1.0.0",
},
Object {
"currentValue": "==1.9",
"datasource": "pypi",
"depName": "not_semver",
"fromVersion": "1.9",
},
],
"registryUrls": Array [
"http://example.com/private-pypi/",
],
}
`;
exports[`lib/manager/pip_requirements/extract extractPackageFile() extracts multiple dependencies 1`] = `
Array [
Object {
"currentValue": "==1",
"datasource": "pypi",
"depName": "Django",
"fromVersion": "1",
},
Object {
"currentValue": "==0.6.27",
"datasource": "pypi",
"depName": "distribute",
"fromVersion": "0.6.27",
},
Object {
"currentValue": "==0.2",
"datasource": "pypi",
"depName": "dj-database-url",
"fromVersion": "0.2",
},
Object {
"currentValue": "==2.4.5",
"datasource": "pypi",
"depName": "psycopg2",
"fromVersion": "2.4.5",
},
Object {
"currentValue": "==0.1.2",
"datasource": "pypi",
"depName": "wsgiref",
"fromVersion": "0.1.2",
},
]
`;
exports[`lib/manager/pip_requirements/extract extractPackageFile() handles comments and commands 1`] = `
Array [
Object {
"currentValue": "==1.11.23",
"datasource": "pypi",
"depName": "Django",
"fromVersion": "1.11.23",
},
Object {
"currentValue": "==0.6.27",
"datasource": "pypi",
"depName": "distribute",
"fromVersion": "0.6.27",
"skipReason": "ignored",
},
Object {
"currentValue": "==0.2",
"datasource": "pypi",
"depName": "dj-database-url",
"fromVersion": "0.2",
},
Object {
"currentValue": "==2.4.5",
"datasource": "pypi",
"depName": "psycopg2",
"fromVersion": "2.4.5",
},
Object {
"currentValue": "==0.1.2",
"datasource": "pypi",
"depName": "wsgiref",
"fromVersion": "0.1.2",
},
]
`;
exports[`lib/manager/pip_requirements/extract extractPackageFile() handles extra index url 1`] = `
Object {
"deps": Array [
Object {
"currentValue": "==2.0.12",
"datasource": "pypi",
"depName": "Django",
"fromVersion": "2.0.12",
},
Object {
"currentValue": "==4.1.1",
"datasource": "pypi",
"depName": "celery",
"fromVersion": "4.1.1",
},
Object {
"currentValue": " == 3.2.1",
"datasource": "pypi",
"depName": "foo",
},
Object {
"currentValue": "==0.3.1",
"datasource": "pypi",
"depName": "some-package",
"fromVersion": "0.3.1",
},
Object {
"currentValue": "==1.0.0",
"datasource": "pypi",
"depName": "some-other-package",
"fromVersion": "1.0.0",
},
Object {
"currentValue": "==1.9",
"datasource": "pypi",
"depName": "not_semver",
"fromVersion": "1.9",
},
],
"registryUrls": Array [
"https://artifactory.company.com/artifactory/api/pypi/python/simple",
"http://example.com/private-pypi/",
],
}
`;
exports[`lib/manager/pip_requirements/extract extractPackageFile() handles extra index url and defaults without index to config 1`] = `
Object {
"deps": Array [
Object {
"currentValue": "==2.0.12",
"datasource": "pypi",
"depName": "Django",
"fromVersion": "2.0.12",
},
Object {
"currentValue": "==4.1.1",
"datasource": "pypi",
"depName": "celery",
"fromVersion": "4.1.1",
},
Object {
"currentValue": " == 3.2.1",
"datasource": "pypi",
"depName": "foo",
},
Object {
"currentValue": "==0.3.1",
"datasource": "pypi",
"depName": "some-package",
"fromVersion": "0.3.1",
},
Object {
"currentValue": "==1.0.0",
"datasource": "pypi",
"depName": "some-other-package",
"fromVersion": "1.0.0",
},
Object {
"currentValue": "==1.9",
"datasource": "pypi",
"depName": "not_semver",
"fromVersion": "1.9",
},
],
"registryUrls": Array [
"AnExistingDefaultUrl",
"http://example.com/private-pypi/",
],
}
`;
exports[`lib/manager/pip_requirements/extract extractPackageFile() handles extra index url and defaults without index to pypi 1`] = `
Object {
"deps": Array [
Object {
"currentValue": "==2.0.12",
"datasource": "pypi",
"depName": "Django",
"fromVersion": "2.0.12",
},
Object {
"currentValue": "==4.1.1",
"datasource": "pypi",
"depName": "celery",
"fromVersion": "4.1.1",
},
Object {
"currentValue": " == 3.2.1",
"datasource": "pypi",
"depName": "foo",
},
Object {
"currentValue": "==0.3.1",
"datasource": "pypi",
"depName": "some-package",
"fromVersion": "0.3.1",
},
Object {
"currentValue": "==1.0.0",
"datasource": "pypi",
"depName": "some-other-package",
"fromVersion": "1.0.0",
},
Object {
"currentValue": "==1.9",
"datasource": "pypi",
"depName": "not_semver",
"fromVersion": "1.9",
},
],
"registryUrls": Array [
"https://pypi.org/pypi/",
"http://example.com/private-pypi/",
],
}
`;
exports[`lib/manager/pip_requirements/extract extractPackageFile() handles extras and complex index url 1`] = `
Object {
"deps": Array [
Object {
"currentValue": "==2.0.12",
"datasource": "pypi",
"depName": "Django",
"fromVersion": "2.0.12",
},
Object {
"currentValue": "==4.1.1",
"datasource": "pypi",
"depName": "celery",
"fromVersion": "4.1.1",
},
Object {
"currentValue": " == 3.2.1",
"datasource": "pypi",
"depName": "foo",
},
],
"registryUrls": Array [
"https://artifactory.company.com/artifactory/api/pypi/python/simple",
],
}
`;