Coverage for tests/django_tests/db/bots/test_plugins/test_plugin_mbp.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.4.3, created at 2024-03-12 13:49 +0000

1from django_napse.core.models import MBPPlugin 

2from django_napse.utils.constants import PLUGIN_CATEGORIES 

3from django_napse.utils.model_test_case import ModelTestCase 

4from tests.django_tests.db.bots.test_plugin import PluginDefaultTestCase 

5 

6""" 

7python tests/test_app/manage.py test tests.django_tests.bots.test_plugin_mbp -v2 --keepdb --parallel 

8""" 

9 

10 

11class MBPPluginTestCase(PluginDefaultTestCase): 

12 model = MBPPlugin 

13 

14 def test_plugin_category(self): 

15 plugin = self.simple_create() 

16 self.assertEqual(plugin.plugin_category(), PLUGIN_CATEGORIES.POST_ORDER) 

17 

18 

19class MBPPluginBINANCETestCase(MBPPluginTestCase, ModelTestCase): 

20 exchange = "BINANCE"