def test_config_store():
    store = sign.MemorySignatureStore()

    c = Config()
    c.NotebookNotary.store_factory = lambda: store
    notary = sign.NotebookNotary(config=c)
    assert notary.store is store
 def setUp(self):
     self.store = sign.MemorySignatureStore()
Beispiel #3
0
# Disable sqlite things since we use nfs

# history manager -- we don't really use it
c.Historymanager.enabled = False

# nbformat signing. from nbformat/tests/test_sign.py
from nbformat import sign
store = sign.MemorySignatureStore()
c.NotebookNotary.store_factory = lambda: store