File: test_packages.py

package info (click to toggle)
ros-bloom 0.13.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,212 kB
  • sloc: python: 8,113; makefile: 322; xml: 19
file content (19 lines) | stat: -rw-r--r-- 571 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os

from ..utils.common import AssertRaisesContext
from ..utils.common import in_temporary_directory
from ..utils.common import redirected_stdio
from ..utils.common import user

from bloom.packages import get_package_data

test_data_dir = os.path.join(os.path.dirname(__file__), 'test_packages_data')


@in_temporary_directory
def test_get_package_data_fails_on_uppercase():
    user('git init .')

    with AssertRaisesContext(SystemExit, "Invalid package names, aborting."):
        with redirected_stdio():
            get_package_data(directory=test_data_dir)