Passed
Push — dev ( f6dceb...782bb6 )
by Uwe
01:13
created

import_tests   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 2

2 Functions

Rating   Name   Duplication   Size   Complexity  
A test_oemofdb_imports() 0 4 1
A test_that_oemof_is_importable() 0 2 1
1
# -*- coding: utf-8 -
2
3
"""Tests of the component module.
4
5
SPDX-License-Identifier: MIT
6
"""
7
8
import oemof
9
10
import oemof.db.connect as oemofdb
11
12
13
def test_that_oemof_is_importable():
14
    assert oemof.db.__version__
15
16
17
def test_oemofdb_imports():
18
    assert oemofdb.connection
19
    assert oemofdb.engine
20
    assert oemofdb.url
21