comparison test_data/getan_test_data.py @ 454:a4f04440f045 2.2

Improves coding style and phrasing.
author Bernhard Reiter <bernhard@intevation.de>
date Fri, 26 Jan 2018 17:28:33 +0100
parents ceb5909b106e
children 199b3e3657aa
comparison
equal deleted inserted replaced
453:ceb5909b106e 454:a4f04440f045
1 #!/usr/bin/env python3 1 #!/usr/bin/env python3
2 """ Create test data for getan (getan_test_data.db).
2 3
3 # Program to create test data for getan (getan_test_data.db). 4 Please delete existing getan_test_data.db.
5 Execute getan_test_data.py to get the test database getan_test_data.db.
6 Open getan with getan_test_data.db: getan /path/getan_test_data.db
4 7
8 (c) 2018 Intevation GmbH
9 Author: Magnus Schieder <magnus.schieder@intevation.de>
10
11 This is Free Software licensed under the terms of GPLv3 or later.
12 For details see LICENSE coming with the source of 'getan'.
5 """ 13 """
6 Author: Magnus Schieder <magnus.schieder@intevation.de>
7 (c) 2018 Intevation GmbH
8
9 Please delete existing getan_test_data.db.
10 Execute getan_test_data.py to get the test database getan_test_data.db.
11 Open getan with getan_test_data.db: getan /path/getan_test_data.db
12
13 This is Free Software licensed under the terms of GPLv3 or later.
14 For details see LICENSE coming with the source of 'getan'.
15 """
16
17
18 import sqlite3 14 import sqlite3
19 15
20 16
21 def main(): 17 def main():
22 18
71 67
72 conn.commit() 68 conn.commit()
73 conn.close() 69 conn.close()
74 print("getan_test_data.db was created.") 70 print("getan_test_data.db was created.")
75 71
72
76 if __name__ == '__main__': 73 if __name__ == '__main__':
77 main() 74 main()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)