Beispiel #1
0
def show_event(id):
	info = controller.get_basic_info()
	event = controller.get_event_by_id(id)
	now = datetime.datetime.now()
	date = str(now.month) + "-" + str(now.day) + "-" + str(now.year)
	return render_template("event_details.html", event=event, date=date, user=info['user'], 
		most_recent_event=info['recent'], featured_event=info['featured'])
Beispiel #2
0
def all_the_tests():
	test_results = ""
	if controller.get_user_by_id(1):
		test_results += "Get_User function passed, "
	else:
		test_results += "Get_User function failed, "

	if controller.get_event_by_id(1):
		test_results += "Get_Event function passed, "
	else:
		test_results += "Get_Event function failed, "

	if controller.process_basic_search("cha-cha", "South Bay"):
		test_results += "Process_Basic_Search function passed, "
	else:
		test_results += "Process_Basic_Search function failed, "

	return test_results