Skip to content

Commit 267dd11

Browse files
committed
removed testing code
1 parent 66ab3ed commit 267dd11

1 file changed

Lines changed: 1 addition & 31 deletions

File tree

Pckgd/Pckgd.py

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -494,35 +494,5 @@ def do_update_view():
494494
elif model.HttpMethod == "get" and Data.v == "update" and Data.pkg != "":
495495
do_update_view()
496496

497-
elif model.HttpMethod == "get" and Data.v == "test":
498-
model.Header = "Package Manager - Test"
499-
model.Title = "Package Manager - Test"
500-
501-
input = """
502-
# Pckgd
503-
# Title: Sample Package
504-
# Description: A sample package for testing.
505-
# Updates from: GitHub/ExampleUser/ExampleRepo/SamplePackage.py
506-
507-
somevar = 123
508-
509-
# this is preamble that should be preserved.
510-
511-
# ==============
512-
513-
# This is content that should be changed.
514-
515-
"""
516-
517-
p = Pckgd(5, "SamplePackage", input)
518-
print("<h2>Package: {}</h2>\n".format(p.name()))
519-
print("<pre>{}</pre>\n".format(json.dumps(p.headers, indent=2)))
520-
print("<p>Version: {}</p>\n".format(p.version))
521-
522-
new_input = Pckgd.set_header(input, "Version", "1.2.3", 5)
523-
524-
p2 = Pckgd(5, "SamplePackage", new_input)
525-
print("<h2>Updated Package: {}</h2>\n".format(p2.name()))
526-
print("<pre>{}</pre>\n".format(json.dumps(p2.headers, indent=2)))
527-
print("<p>Version: {}</p>\n".format(p2.version))
497+
528498

0 commit comments

Comments
 (0)