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

« back to all changes in this revision

Viewing changes to lib/ubuntu_repository_cache/tests/test_metadata_sync.py

  • 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:
181
181
        expected = [
182
182
            [(['juju-run',
183
183
               'unit/0',
 
184
               '/usr/local/sbin/charm-env '
184
185
               '/var/lib/juju/agents/something/charm/hooks/'
185
186
               'ubuntu-repository-cache-sync some_meta_var'],), {}]]
186
187