Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenQuizz
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Weber Rodolphe
OpenQuizz
Commits
709a9c4f
Commit
709a9c4f
authored
Jun 29, 2021
by
Jérémie Passerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppression d'un import erroné dans Utils
parent
bec2f386
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
10 deletions
+79
-10
app.py
app.py
+52
-2
utils.py
config/utils.py
+0
-6
classjinja2_1_1compiler_1_1_code_generator.js
...tation/html/classjinja2_1_1compiler_1_1_code_generator.js
+1
-1
contenu_dao.py
modele/contenu_dao.py
+1
-1
test_flask.py
test_flask.py
+25
-0
No files found.
app.py
View file @
709a9c4f
This diff is collapsed.
Click to expand it.
config/utils.py
View file @
709a9c4f
from
flask
import
Flask
from
flask_pymongo
import
PyMongo
from
config.gitUtils
import
GitUtils
app
=
Flask
(
__name__
)
app
.
config
[
"MONGO_URI"
]
=
"mongodb://localhost:27017/squelette"
mongo
=
PyMongo
(
app
)
## Fonctions 'générales', principalement de manipulation des fichiers
class
Utils
:
## Fonction permettant de changer la version
...
...
documentation/html/classjinja2_1_1compiler_1_1_code_generator.js
View file @
709a9c4f
...
...
@@ -100,5 +100,5 @@ var classjinja2_1_1compiler_1_1_code_generator =
[
"optimized"
,
"classjinja2_1_1compiler_1_1_code_generator.html#a5ab6474ed31a2311422a69823d8dd8c4"
,
null
],
[
"optimizer"
,
"classjinja2_1_1compiler_1_1_code_generator.html#a6e7f6ae6228957cb12294e2ffbc0fbc8"
,
null
],
[
"stream"
,
"classjinja2_1_1compiler_1_1_code_generator.html#ae489866f8220882799d2786ca0690e5b"
,
null
],
[
"test
s
"
,
"classjinja2_1_1compiler_1_1_code_generator.html#aa58c6e40436bbb090294218b7d758a15"
,
null
]
[
"test"
,
"classjinja2_1_1compiler_1_1_code_generator.html#aa58c6e40436bbb090294218b7d758a15"
,
null
]
];
\ No newline at end of file
modele/contenu_dao.py
View file @
709a9c4f
...
...
@@ -16,7 +16,7 @@ from modele.encours_dao import EncoursDao
class
ContenuDao
:
client
=
MongoClient
(
'localhost'
,
27017
)
chemin
=
"/home/
passerat/Stage/flaskProject
/contenus/"
chemin
=
"/home/
OpenQuizz/Flask
/contenus/"
gitUtils
=
GitUtils
()
## extraction d'une base de données. Si elle n'existe pas, elle esst créée
...
...
test_flask.py
0 → 100644
View file @
709a9c4f
import
pytest
import
os
import
pytest
from
app
import
app
from
flask
import
url_for
@
pytest
.
fixture
def
client
():
app
.
config
[
'TESTING'
]
=
True
app
.
config
[
'SERVER_NAME'
]
=
'TEST'
client
=
app
.
test_client
()
with
app
.
app_context
():
pass
app
.
app_context
()
.
push
()
yield
client
def
test_multiplication
():
assert
4
==
2
*
2
def
test_index
(
client
):
rv
=
client
.
get
(
'/'
)
assert
rv
.
status_code
==
404
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment