use any old user and add fixtures for ticket reports during ticket import
This commit is contained in:
parent
31f403207d
commit
cc2e7d5fcf
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue