Skip to content

Commit

Permalink
test: import at top
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuullll committed Nov 15, 2024
1 parent 915552b commit 9610417
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions service/tests/test_api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import sys
import os
import unittest
from web_api import app
import logging

service_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
sys.path.insert(0, service_dir)
Expand All @@ -14,11 +17,6 @@
"vae": os.path.join(model_dir, "stable_diffusion", "vae"),
}

import unittest
from web_api import app
import logging


class TestAPI(unittest.TestCase):
def setUp(self):
self.app = app.test_client()
Expand Down

0 comments on commit 9610417

Please sign in to comment.