19 lines
435 B
Python
19 lines
435 B
Python
# Copyright (c) OpenMMLab. All rights reserved.
|
|
import unittest
|
|
|
|
import pytest
|
|
|
|
from mmrazor.utils import get_placeholder
|
|
|
|
|
|
class TestPlaceholder(unittest.TestCase):
|
|
|
|
def test_placeholder(self):
|
|
holder = get_placeholder('test')
|
|
with pytest.raises(ImportError):
|
|
holder()
|
|
from mmrazor.models.architectures.dynamic_ops import DynamicMixin
|
|
|
|
class tmp(holder, DynamicMixin):
|
|
pass
|