chore(core): correct test for get_url_kwargs for meta abstract model
ref: #813
This commit is contained in:
@ -183,7 +183,7 @@ for model in get_models():
|
||||
}
|
||||
)
|
||||
|
||||
dynamic_class = pytest.mark.__getattr__('model_' + model._meta.model_name)(dynamic_class)
|
||||
dynamic_class = pytest.mark.__getattr__('model_' + str(model._meta.model_name).replace('audithistory', ''))(dynamic_class)
|
||||
dynamic_class = pytest.mark.__getattr__('module_' + model._meta.app_label)(dynamic_class)
|
||||
|
||||
globals()[cls_name] = dynamic_class
|
||||
|
@ -153,3 +153,12 @@ class CenturionNoteModelPyTest(
|
||||
"""
|
||||
|
||||
assert model.model_tag is not None
|
||||
|
||||
|
||||
def test_method_get_url_returns_str(self, model, model_instance):
|
||||
"""Test Class Method
|
||||
|
||||
Ensure method `get_url` returns the url as str
|
||||
"""
|
||||
|
||||
pytest.xfail( reason = 'Test not required as model does not have direct endpoint.' )
|
||||
|
Reference in New Issue
Block a user