123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- """Model unit tests."""
- import pytest
- from walle.model.environment import EnvironmentModel
- @pytest.mark.usefixtures('db')
- class TestFoo:
- """User tests."""
- def test_get_by_id(self):
- """Get user by ID."""
- pass
-
-
-
-
-
-
- class TestEnvironment:
- def test_add(self):
- env_new = EnvironmentModel()
- env_id = env_new.add(env_name=u'开发环境', space_id=1)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|