File: test_metadata.py

package info (click to toggle)
python-mt-940 4.30.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,272 kB
  • sloc: python: 1,746; makefile: 201
file content (20 lines) | stat: -rw-r--r-- 558 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import pytest


@pytest.mark.parametrize('attribute,contains', [
    ('__title__', 'MT940'),
    ('__package_name__', 'mt-940'),
    ('__author__', 'Rick van Hattem (wolph)'),
    ('__description__', 'MT940'),
    ('__email__', '@'),
    ('__version__', '.'),
    ('__license__', 'BSD'),
    ('__copyright__', 'Rick van Hattem (wolph)'),
    ('__url__', 'https://'),
])
def test_metadata(attribute, contains):
    from mt940 import __about__
    assert getattr(__about__, attribute)
    if contains:
        assert contains in getattr(__about__, attribute)