How to use the muffin.utils function in muffin

To help you get started, we’ve selected a few muffin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github klen / muffin / tests / test_muffin.py View on Github external
def test_password_hash():
    pwhash = muffin.utils.generate_password_hash('pass')
    assert pwhash

    assert not muffin.utils.check_password_hash('wrong', pwhash)
    assert muffin.utils.check_password_hash('pass', pwhash)
github klen / muffin / tests / test_muffin.py View on Github external
def test_password_hash():
    pwhash = muffin.utils.generate_password_hash('pass')
    assert pwhash

    assert not muffin.utils.check_password_hash('wrong', pwhash)
    assert muffin.utils.check_password_hash('pass', pwhash)
github klen / muffin-admin / tests.py View on Github external
def load_many(self, request):
            return [
                muffin.utils.Struct(id=1, name='test1'),
                muffin.utils.Struct(id=2, name='test2'),
            ]
github klen / muffin-admin / tests.py View on Github external
def load_many(self, request):
            return [
                muffin.utils.Struct(id=1, name='test1'),
                muffin.utils.Struct(id=2, name='test2'),
            ]