~hloeung/ubuntu-repository-cache/cache-memory-tuning-fix

« back to all changes in this revision

Viewing changes to tox.ini

  • Committer: mergebot at canonical
  • Author(s): "Haw Loeung"
  • Date: 2020-08-11 04:18:40 UTC
  • mfrom: (280.1.2 ubuntu-repository-cache-charm)
  • Revision ID: mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20200811041840-y23j1a7y3lxk67u2
Switch to pytest and fix unit tests

Reviewed-on: https://code.launchpad.net/~hloeung/ubuntu-repository-cache/pytest-coverage-fix-unit-tests/+merge/389050
Reviewed-by: Paul Collins <paul.collins@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
skipsdist = True
4
4
 
5
5
[testenv]
6
 
setenv =
7
 
    PYTHONPATH = {toxinidir}
8
 
deps =
9
 
    pyyaml
10
 
    nose
11
 
    flake8
12
 
    mock
13
 
    ipdb
14
 
    coverage
15
 
    backoff==1.4.0
16
 
commands=
17
 
    nosetests -v --with-coverage -s lib/ubuntu_repository_cache --ignore-files=vendor/*
 
6
basepython = python3
 
7
setenv =
 
8
  PYTHONPATH = .
 
9
 
 
10
[testenv:unit]
 
11
commands =
 
12
    pytest --ignore {toxinidir}/tests/functional \
 
13
      {posargs:-v  --cov=lib --cov=reactive --cov=actions --cov-report=term-missing --cov-branch}
 
14
deps = -r{toxinidir}/tests/unit/requirements.txt
 
15
       -r{toxinidir}/requirements.txt
 
16
setenv =
 
17
  PYTHONPATH={toxinidir}/lib
 
18
  TZ=UTC
 
19
 
 
20
[testenv:black]
 
21
commands = black --skip-string-normalization --line-length=120 .
 
22
deps = black
18
23
 
19
24
[testenv:lint]
20
25
deps=