Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .gcloudignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file specifies files that are *not* uploaded to Google Cloud Platform
# using gcloud. It follows the same syntax as .gitignore, with the addition of
# "#!include" directives (which insert the entries of the given .gitignore-style
# file at that point).
#
# For more information, run:
# $ gcloud topic gcloudignore
#
.gcloudignore
# If you would like to upload your .git directory, .gitignore file or files
# from your .gitignore file, remove the corresponding line
# below:
.git
.gitignore

# Python pycache:
__pycache__/
# Ignored by the build system
/setup.cfg
70 changes: 70 additions & 0 deletions UnitTests/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
from app import app
import unittest


class FlaskTestCase(unittest.TestCase):

def test_about (self):
tester=app.test_client(self)
response=tester.get('/about', content_type='html/text')
self.assertEqual(response.status_code,200)

def test_account(self):
tester = app.test_client(self)
response = tester.get('/account', content_type='html/text')
self.assertEqual(response.status_code, 200)

def test_afterAmend(self):
tester = app.test_client(self)
response = tester.get('/afterAmend', content_type='html/text')
self.assertEqual(response.status_code, 200)

def test_afterDelete(self):
tester = app.test_client(self)
response = tester.get('/afterDelete', content_type='html/text')
self.assertEqual(response.status_code, 200)

def test_afterOrder(self):
tester = app.test_client(self)
response = tester.get('/afterOrder', content_type='html/text')
self.assertEqual(response.status_code, 200)

def test_amendOrder(self):
tester = app.test_client(self)
response = tester.get('/amendOrder', content_type='html/text')
self.assertEqual(response.status_code, 200)

def test_deleteOrder(self):
tester = app.test_client(self)
response = tester.get('/deleteOrder', content_type='html/text')
self.assertEqual(response.status_code, 200)

def test_home(self):
tester = app.test_client(self)
response = tester.get('/home', content_type='html/text')
self.assertEqual(response.status_code, 200)

def test_login(self):
tester = app.test_client(self)
response = tester.get('/login', content_type='html/text')
self.assertEqual(response.status_code, 200)

def test_newOrder(self):
tester = app.test_client(self)
response = tester.get('/newOrder', content_type='html/text')
self.assertEqual(response.status_code, 200)

def test_signUp(self):
tester = app.test_client(self)
response = tester.get('/signUp', content_type='html/text')
self.assertEqual(response.status_code, 200)

def test_userOrder(self):
tester = app.test_client(self)
response = tester.get('/userOrder', content_type='html/text')
self.assertEqual(response.status_code, 200)



if __name__ == '__main__':
unittest.main()
27 changes: 27 additions & 0 deletions app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

runtime: python39

handlers:
# This configures Google App Engine to serve the files in the app's static
# directory.
- url: /static
static_dir: static

# This handler routes all requests not caught above to your main app. It is
# required when static routes are defined, but can be omitted (along with
# the entire handlers section) when there are no static files defined.
- url: /.*
script: auto
21 changes: 21 additions & 0 deletions index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

indexes:

- kind: visit
ancestor: yes
properties:
- name: timestamp
direction: desc
Loading