Skip to content

Commit 9497d5e

Browse files
committed
Added TRACE debugging to Travis.yml added a exception catch in the test with output
cleaned up SQL statements
1 parent 9b58917 commit 9497d5e

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ before_script:
1616
env:
1717
- process_tracking_data_store_host=localhost process_tracking_data_store_port=5432
1818
process_tracking_data_store_name=process_tracking process_tracking_data_store_type=postgresql
19-
process_tracking_data_store_password=Testing1! process_tracking_data_store_username=pt_admin log_level=INFO
19+
process_tracking_data_store_password=Testing1! process_tracking_data_store_username=pt_admin log_level=TRACE
2020
deploy:
2121
- provider: releases
2222
api_key:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
drop database process_tracking
12
create database process_tracking;
23
create user pt_admin with password 'Testing1!';
34
grant all privileges on database process_tracking to pt_admin;

dbscripts/postgresql_process_tracker.sql

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ create schema process_tracking;
44

55
alter schema process_tracking owner to pt_admin;
66

7-
create schema process_tracking;
8-
9-
alter schema process_tracking owner to pt_admin;
10-
11-
create database process_tracking
12-
with owner postgres;
13-
14-
create schema process_tracking;
15-
16-
alter schema process_tracking owner to pt_admin;
17-
187
create table error_type_lkup
198
(
209
error_type_id serial not null

tests/test_cli.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,13 @@ def test_create_error_type(self):
6161
"""
6262
print('starting the bloody test')
6363
result = self.runner.invoke(main, 'create -t "error type" -n "New Error Type"')
64+
print(str(result.output))
6465
print('got the result')
6566
instance = self.session.query(ErrorType).filter(ErrorType.error_type_name == 'New Error Type').first()
67+
try:
68+
print(str(instance.error_type_name))
69+
except Exception as e:
70+
print(e)
6671
print('got the instance')
6772
given_name = instance.error_type_name
6873
print('invoking delete')

0 commit comments

Comments
 (0)