Kaydet (Commit) 42ca51b1 authored tarafından Eray Erdin's avatar Eray Erdin 🎖

overriding `_VariableManager`'s `create` method

üst 3d106638
import pytest
from persistent_settings import models
@pytest.mark.describe("Overriding `_VariableManager`'s Default Methods")
class TestOverrideVariableManager:
@pytest.mark.it("`create` method")
def test_create(self, db):
v = models.Variable.objects.create(name="FOO", value=5)
assert v.value == 5
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment