diff options
| author | mo khan <mo.khan@gmail.com> | 2020-10-05 15:01:56 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-10-05 15:01:56 -0600 |
| commit | ea3481fdb3bc94ce882f045d42ae9984548fc0e5 (patch) | |
| tree | af3d60cd146203f4cc8d04f9a7883ef81f34f836 | |
| parent | 1d91e5ad64ec4a28906a883692ed70154673df37 (diff) | |
test: add spec for python 3.4 project
| -rw-r--r-- | spec/fixtures/python/pipenv/python-3.4/Pipfile | 12 | ||||
| -rw-r--r-- | spec/fixtures/python/pipenv/python-3.4/Pipfile.lock | 30 | ||||
| -rw-r--r-- | spec/integration/python/pipenv_spec.rb | 12 |
3 files changed, 54 insertions, 0 deletions
diff --git a/spec/fixtures/python/pipenv/python-3.4/Pipfile b/spec/fixtures/python/pipenv/python-3.4/Pipfile new file mode 100644 index 0000000..2afbe5f --- /dev/null +++ b/spec/fixtures/python/pipenv/python-3.4/Pipfile @@ -0,0 +1,12 @@ +[[source]] +name = "pypi" +url = "https://pypi.org/simple" +verify_ssl = true + +[dev-packages] + +[packages] +docutils = "==0.13.1" + +[requires] +python_version = "3.4" diff --git a/spec/fixtures/python/pipenv/python-3.4/Pipfile.lock b/spec/fixtures/python/pipenv/python-3.4/Pipfile.lock new file mode 100644 index 0000000..e197560 --- /dev/null +++ b/spec/fixtures/python/pipenv/python-3.4/Pipfile.lock @@ -0,0 +1,30 @@ +{ + "_meta": { + "hash": { + "sha256": "ec82d5e7c10fd591aeebbc9b7b62d730f7fd70dc52e4e4818834891aa4194c73" + }, + "pipfile-spec": 6, + "requires": { + "python_version": "3.4" + }, + "sources": [ + { + "name": "pypi", + "url": "https://pypi.org/simple", + "verify_ssl": true + } + ] + }, + "default": { + "docutils": { + "hashes": [ + "sha256:718c0f5fb677be0f34b781e04241c4067cbd9327b66bdd8e763201130f5175be", + "sha256:cb3ebcb09242804f84bdbf0b26504077a054da6772c6f4d625f335cc53ebf94d", + "sha256:de454f1015958450b72641165c08afe7023cd7e3944396448f2fb1b0ccba9d77" + ], + "index": "pypi", + "version": "==0.13.1" + } + }, + "develop": {} +} diff --git a/spec/integration/python/pipenv_spec.rb b/spec/integration/python/pipenv_spec.rb index b7847fd..f13bd31 100644 --- a/spec/integration/python/pipenv_spec.rb +++ b/spec/integration/python/pipenv_spec.rb @@ -239,4 +239,16 @@ RSpec.describe "pipenv" do expect(subject.dependency_names).to match_array(%w[Django docutils pytz requests]) end end + + context "when scanning a Python 3.4 project" do + before do + runner.mount(dir: fixture_file('python/pipenv/python-3.4/')) + end + + specify do + expect(subject).to match_schema + expect(subject.dependency_names).to match_array(%w[docutils]) + expect(subject.licenses_for('docutils')).to match_array(['public domain, python, 2-clause bsd, gpl 3 (see copying.txt)']) + end + end end |
