Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)
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)
def load_many(self, request):
return [
muffin.utils.Struct(id=1, name='test1'),
muffin.utils.Struct(id=2, name='test2'),
]
def load_many(self, request):
return [
muffin.utils.Struct(id=1, name='test1'),
muffin.utils.Struct(id=2, name='test2'),
]