Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
dj-kaos / models / test_fields.py
Size: Mime:
from decimal import Decimal

from test_example.test_app.models import FieldsExample


def test_fields(db):
    instance = FieldsExample.objects.create(price=10, lower_case_insensitive_field="HeLLo")
    instance.refresh_from_db()
    assert instance.price == Decimal(10)
    assert instance.lower_case_insensitive_field == "hello"

    assert FieldsExample.objects.filter(lower_case_insensitive_field="HELLO").exists()