Skip to content

Commit 63cc0ac

Browse files
committed
Removed test book insertions
1 parent 246440c commit 63cc0ac

File tree

2 files changed

+0
-49
lines changed
  • python-sqlite-sqlalchemy/project/examples

2 files changed

+0
-49
lines changed

python-sqlite-sqlalchemy/project/examples/example_1/main.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -131,31 +131,6 @@ def main():
131131
book_title="The Stand",
132132
publisher_name="Random House",
133133
)
134-
data = add_new_book(
135-
data,
136-
author_name="Tom Clancy",
137-
book_title="It",
138-
publisher_name="Random House",
139-
)
140-
data = add_new_book(
141-
data,
142-
author_name="Doug Farrell",
143-
book_title="Python and SQLite and SqlAlchemy, Oh My",
144-
publisher_name="Random House",
145-
)
146-
data = add_new_book(
147-
data,
148-
author_name="Tom Clancy",
149-
book_title="It",
150-
publisher_name="Real Python",
151-
)
152-
data = add_new_book(
153-
data,
154-
author_name="Tom Clancy",
155-
book_title="It",
156-
publisher_name="Random House",
157-
)
158-
159134
# Output the updated hierarchical authors data
160135
output_author_hierarchy(data)
161136

python-sqlite-sqlalchemy/project/examples/example_2/main.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -192,30 +192,6 @@ def main():
192192
book_title="The Stand",
193193
publisher_name="Random House",
194194
)
195-
add_new_book(
196-
session,
197-
author_name="Tom Clancy",
198-
book_title="It",
199-
publisher_name="Random House",
200-
)
201-
add_new_book(
202-
session,
203-
author_name="Doug Farrell",
204-
book_title="Python and SQLite and SqlAlchemy, Oh My",
205-
publisher_name="Random House",
206-
)
207-
add_new_book(
208-
session,
209-
author_name="Tom Clancy",
210-
book_title="It",
211-
publisher_name="Real Python",
212-
)
213-
add_new_book(
214-
session,
215-
author_name="Tom Clancy",
216-
book_title="It",
217-
publisher_name="Random House",
218-
)
219195
# Output the updated hierarchical authors data
220196
authors = get_authors(session)
221197
output_author_hierarchy(authors)

0 commit comments

Comments
 (0)