Skip to content

Commit

Permalink
Add tool to fill test content
Browse files Browse the repository at this point in the history
  • Loading branch information
Saluev committed Mar 9, 2019
1 parent 3ced773 commit 3c5c0a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Empty file added tools/__init__.py
Empty file.
11 changes: 11 additions & 0 deletions tools/add_test_content.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from backend.storage.card import Card
from backend.wiring import Wiring

wiring = Wiring()

wiring.card_dao.create(Card(
slug="helloworld",
name="Hello, world!",
markdown="""
This is a hello-world page.
"""))

0 comments on commit 3c5c0a7

Please sign in to comment.