This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from unittest import TestCase | |
from celery.contrib.testing import worker | |
class CeleryTestCase(TestCase): | |
@property | |
def celery_app(self): | |
""" | |
Override this method to provide this testcase with the celery app under test | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import copy | |
import json | |
import os | |
from openai import OpenAI | |
client = OpenAI( | |
api_key="<Your api key here>" | |
) |