Skip to content

Commit

Permalink
pushed commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtabBukhari committed Nov 19, 2024
1 parent 291424b commit 3ca1816
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 2 additions & 0 deletions db/test_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ func InitTestDB() {
db.AutoMigrate(&WorkspaceUsers{})
db.AutoMigrate(&WorkspaceUserRoles{})
db.AutoMigrate(&Bot{})
db.AutoMigrate(&WfRequest{})
db.AutoMigrate(&WfProcessingMap{})

people := TestDB.GetAllPeople()
for _, p := range people {
Expand Down
10 changes: 3 additions & 7 deletions handlers/workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@ func TestHandleWorkflowRequest(t *testing.T) {
wh := NewWorkFlowHandler(db.TestDB)

t.Run("successful workflow request", func(t *testing.T) {
requestData := db.PropertyMap{
"test_key": "test_value",
}

request := &db.WfRequest{
Source: "test_source_1",
Action: "test_action_1",
WorkflowID: "test_workflow",
RequestData: requestData,
Source: "test_source_1",
Action: "test_action_1",
WorkflowID: "test_workflow",
}

body, _ := json.Marshal(request)
Expand Down

0 comments on commit 3ca1816

Please sign in to comment.