File: test_import.py

package info (click to toggle)
pymad 0.11.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 244 kB
  • sloc: ansic: 518; python: 153; makefile: 6
file content (16 lines) | stat: -rw-r--r-- 310 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os
import sys

sys.path.insert(0, os.path.abspath(".."))
print(sys.path)

from importlib.metadata import version


def test_import():
    import mad

    print("Package version:", mad.__version__)
    print("Expected metadata version:", version("pymad"))

    assert mad.__version__ == version("pymad")