mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 19:14:00 +03:00
adding .coveragerc and some tests
This commit is contained in:
parent
a4a160b061
commit
13d6a0f667
3
.coveragerc
Normal file
3
.coveragerc
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[run]
|
||||||
|
include = objects/*
|
||||||
|
omit = tests/*
|
|
@ -0,0 +1 @@
|
||||||
|
"""Objects unittests."""
|
16
tests/test_injections.py
Normal file
16
tests/test_injections.py
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
"""Objects injections unittests."""
|
||||||
|
|
||||||
|
import unittest2 as unittest
|
||||||
|
from objects.injections import Injection
|
||||||
|
|
||||||
|
|
||||||
|
class InjectionTest(unittest.TestCase):
|
||||||
|
|
||||||
|
"""Injection test cases."""
|
||||||
|
|
||||||
|
def test_init(self):
|
||||||
|
"""Test Injection creation and initialization."""
|
||||||
|
injection = Injection('some_arg_name', 'some_value')
|
||||||
|
|
||||||
|
self.assertEqual(injection.name, 'some_arg_name')
|
||||||
|
self.assertEqual(injection.injectable, 'some_value')
|
Loading…
Reference in New Issue
Block a user