File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 11"""Smellscapy is a Python library for analysing and representing indoor smellscape perceptual data."""
22
33import os
4+ from importlib .metadata import version , PackageNotFoundError
5+
6+ try :
7+ __version__ = version ("smellscapy" )
8+ except PackageNotFoundError :
9+ __version__ = None
410
511
612from smellscapy import databases , plotting , data
Original file line number Diff line number Diff line change 55
66
77
8+
9+ def test_smellscapy_import ():
10+ assert smellscapy .__version__ is not None , "Missing Smellscapy version"
11+
12+
13+
814def test_core_smellscapy_modules ():
915 assert hasattr (smellscapy , "data" ), "Missing data module in Smellscapy"
1016 assert hasattr (smellscapy , "databases" ), "Missing databases module in Smellscapy"
You can’t perform that action at this time.
0 commit comments