JDFPalladium commited on
Commit
406d659
·
1 Parent(s): 4a9fb6a

adding tests locally

Browse files
Files changed (5) hide show
  1. .gitignore +1 -0
  2. Makefile +3 -0
  3. __init__.py +0 -0
  4. app.py +2 -1
  5. requirements.txt +3 -1
.gitignore CHANGED
@@ -175,3 +175,4 @@ cython_debug/
175
 
176
  # Large Files
177
  arv_metadata/
 
 
175
 
176
  # Large Files
177
  arv_metadata/
178
+ tests/
Makefile CHANGED
@@ -5,3 +5,6 @@ install:
5
 
6
  lint:
7
  pylint --disable=R,C app.py
 
 
 
 
5
 
6
  lint:
7
  pylint --disable=R,C app.py
8
+
9
+ test:
10
+ PYTHONPATH=. pytest -vv tests/test_app.py
__init__.py ADDED
File without changes
app.py CHANGED
@@ -157,4 +157,5 @@ demo = gr.Interface(
157
  ],
158
  )
159
 
160
- demo.launch()
 
 
157
  ],
158
  )
159
 
160
+ if __name__ == "__main__":
161
+ demo.launch()
requirements.txt CHANGED
@@ -4,4 +4,6 @@ langdetect==1.0.9
4
  deep-translator==1.11.4
5
  lingua-language-detector==2.0.2
6
  dotenv==0.9.9
7
- pylint
 
 
 
4
  deep-translator==1.11.4
5
  lingua-language-detector==2.0.2
6
  dotenv==0.9.9
7
+ pylint
8
+ pytest
9
+ pytest-mock