Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

246
Views
Unittest Airflow plugins

I have an airflow instance, and created some flask APIs as plugins. I am wondering if there is any way I can run some unittests for these APIs without them being dependent on Airflow?

from flask_appbuilder.api import BaseApi, expose
from flask import send_file, request

class SomeApi(BaseApi):
    route_base = "/api/v1/someapi/"

    @expose("/upload/<path:path>", methods=["POST"])
    def upload_file(self, path: str):
        file = request.files["file"]
        config = self.api_config()
        .
        .
        return self.response(201, path=target_file_path, message=None)

some_api_nomenu_view = SomeApi()
some_api_nomenu_package = {"view": some_api_nomenu_view}

class SomeApiPlugin(AirflowPlugin):
    name = "some_api_name"
    appbuilder_views = [some_api_nomenu_package]

How could you test in this case the upload_file for example? Any help on this is much appreciated, I am new to flask.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!