Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi1992002 committed Dec 13, 2024
1 parent 822f25f commit 7b0bc0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ def __init__(self):
categories={BlockCategory.BASIC},
input_schema=OptionalFieldsBlock.Input,
output_schema=OptionalFieldsBlock.Output,
test_input={
"optional_multiselect": [SelectOptions.OPTION1, SelectOptions.OPTION2],
"optional_string": "test string",
"optional_select": SelectOptions.OPTION1,
"optional_list": ["item1", "item2"],
"optional_int": 3,
},
test_output=("status", "processed"),
)

def run(self, input_data: Input, **kwargs) -> BlockOutput:
Expand Down
11 changes: 11 additions & 0 deletions autogpt_platform/backend/migrations/20241213141341_/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- AlterTable
ALTER TABLE "CreditTransaction" RENAME CONSTRAINT "UserBlockCredit_pkey" TO "CreditTransaction_pkey";

-- RenameForeignKey
ALTER TABLE "CreditTransaction" RENAME CONSTRAINT "UserBlockCredit_blockId_fkey" TO "CreditTransaction_blockId_fkey";

-- RenameForeignKey
ALTER TABLE "CreditTransaction" RENAME CONSTRAINT "UserBlockCredit_userId_fkey" TO "CreditTransaction_userId_fkey";

-- RenameIndex
ALTER INDEX "UserBlockCredit_userId_createdAt_idx" RENAME TO "CreditTransaction_userId_createdAt_idx";

0 comments on commit 7b0bc0d

Please sign in to comment.