Browse Source

Rename routes to app

Getty Ritter 4 years ago
parent
commit
7763718a73
3 changed files with 3 additions and 4 deletions
  1. 1 2
      lament-configuration.py
  2. 0 0
      lc/app.py
  3. 2 2
      tests/routes.py

+ 1 - 2
lament-configuration.py

@@ -1,9 +1,8 @@
 import os
 
+from lc.app import app
 import lc.config
 import lc.model
-import lc.routes
 
 lc.config.DB.init(os.getenv("DB_LOC", "test.db"))
 lc.model.create_tables()
-app = lc.routes.app

lc/routes.py → lc/app.py


+ 2 - 2
tests/routes.py

@@ -1,13 +1,13 @@
 import lc.config as c
 import lc.model as m
-import lc.routes as r
+import lc.app as a
 
 
 class TestRoutes:
     def setup_method(self, _):
         c.DB.init(":memory:")
         c.DB.create_tables(m.MODELS)
-        self.app = r.app.test_client()
+        self.app = a.app.test_client()
 
     def teardown_method(self, _):
         c.DB.close()