Fix tests
This commit is contained in:
parent
45a6e2e58d
commit
d2ce204281
3 changed files with 2 additions and 39 deletions
|
@ -1,6 +1,6 @@
|
||||||
from django.test import SimpleTestCase
|
from django.test import SimpleTestCase
|
||||||
from django.urls import reverse, resolve
|
from django.urls import reverse, resolve
|
||||||
from app.views import default_view, content_view
|
from frontend.views import default_view, content_view
|
||||||
from app.views import login, grades, timetable, exams, homeworks, attendance, notes
|
from app.views import login, grades, timetable, exams, homeworks, attendance, notes
|
||||||
|
|
||||||
class TestUrls(SimpleTestCase):
|
class TestUrls(SimpleTestCase):
|
||||||
|
|
|
@ -13,7 +13,7 @@ class TestViews(TestCase):
|
||||||
response = self.client.get(self.list_url)
|
response = self.client.get(self.list_url)
|
||||||
|
|
||||||
self.assertEquals(response.status_code, 200)
|
self.assertEquals(response.status_code, 200)
|
||||||
self.assertTemplateUsed(response, 'index.html')
|
self.assertTemplateUsed(response, 'frontend/index.html')
|
||||||
|
|
||||||
#CONTENT_VIEW
|
#CONTENT_VIEW
|
||||||
response = self.client.get(self.detail_url)
|
response = self.client.get(self.detail_url)
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
const path = require("path");
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
entry: {
|
|
||||||
attedance : "./files/js/attendance.js",
|
|
||||||
exams : "./files/js/exams.js",
|
|
||||||
grades : "./files/js/grades.js",
|
|
||||||
homeworks : "./files/js/homeworks.js",
|
|
||||||
login : "./files/js/login.js",
|
|
||||||
messages : "./files/js/messages.js",
|
|
||||||
mobile_access : "./files/js/mobile_access.js",
|
|
||||||
notes : "./files/js/notes.js",
|
|
||||||
start : "./files/js/start.js",
|
|
||||||
timetable : "./files/js/timetable.js",
|
|
||||||
},
|
|
||||||
output: {
|
|
||||||
filename: "out-[name].js",
|
|
||||||
path: path.resolve(__dirname, "./files/js/dist")
|
|
||||||
},
|
|
||||||
watch: false,
|
|
||||||
mode: "development",
|
|
||||||
devtool: "source-map",
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.m?js$/,
|
|
||||||
exclude: /(node_modules|bower_components)/,
|
|
||||||
use: {
|
|
||||||
loader: "babel-loader",
|
|
||||||
options: {
|
|
||||||
presets: ["@babel/preset-env"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue