use any old user and add fixtures for ticket reports during ticket import

This commit is contained in:
burnettk 2022-08-29 10:05:57 -04:00
parent 31f403207d
commit cc2e7d5fcf
1 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,7 @@ def main():
from spiffworkflow_backend.services.process_instance_service import (
ProcessInstanceService,
)
from spiffworkflow_backend.models.process_instance_report import ProcessInstanceReportModel
process_model_identifier_ticket = "ticket"
db.session.query(ProcessInstanceModel).filter(
@ -42,7 +43,7 @@ def main():
}
columns_to_header_index_mappings = {}
user = UserModel.query.filter_by(username="test_user1").first()
user = UserModel.query.first()
with open("tests/files/tickets.csv") as infile:
reader = csv.reader(infile, delimiter=",")
@ -97,6 +98,9 @@ def main():
process_instance_data = processor.get_data()
print(f"process_instance_data: {process_instance_data}")
ProcessInstanceReportModel.add_fixtures()
print("added report fixtures")
main()