add more tests (#268)

* add more tests as STUBS
This commit is contained in:
Markos Gogoulos
2021-08-17 00:01:52 +03:00
committed by GitHub
parent 755df50c41
commit fb00f94bfa
29 changed files with 922 additions and 663 deletions

View File

@@ -0,0 +1,9 @@
from django.test import TestCase
class TestX(TestCase):
fixtures = ["fixtures/categories.json", "fixtures/encoding_profiles.json"]
def test_X(self):
# test contact form, send a message and check on email box that it is received
pass

View File

@@ -0,0 +1,12 @@
from django.test import TestCase
class TestX(TestCase):
fixtures = ["fixtures/categories.json", "fixtures/encoding_profiles.json"]
def test_X(self):
# test edit media that it works, by setting different values. then check on the API response
# check that a user cannot set status upon different scenarios (eg on settings PORTAL_WORKFLOW)
# check that changint thumbnail time produces a different thumbnail?
# check adding custom poster, and that it appears instead of the autogenerated?
pass

View File

@@ -0,0 +1,9 @@
from django.test import TestCase
class TestX(TestCase):
fixtures = ["fixtures/categories.json", "fixtures/encoding_profiles.json"]
def test_X(self):
# test edit profile page that it stores correctly the data
pass

View File

@@ -0,0 +1,12 @@
from django.test import TestCase
class TestX(TestCase):
fixtures = ["fixtures/categories.json", "fixtures/encoding_profiles.json"]
def test_X(self):
# test login form that allows user to login
# test login form that redirect has worked (if on a page that required redirect for login, eg edit profile?)
# check upon setting change that it is not allowed
pass

View File

@@ -0,0 +1,13 @@
from django.test import TestCase
class TestX(TestCase):
fixtures = ["fixtures/categories.json", "fixtures/encoding_profiles.json"]
def test_X(self):
# test media upload, using the form.
# 1. upload a file and then check that it appears on the listing
# 2. check that the page has been created
# 3. check that encodings are ok for videos
# 4. check other things (eg pdf/audio/image)
pass

View File

@@ -0,0 +1,10 @@
from django.test import TestCase
class TestX(TestCase):
fixtures = ["fixtures/categories.json", "fixtures/encoding_profiles.json"]
def test_X(self):
# test register form that stores user data correctly
# check upon setting change that it is not allowed
pass

View File

@@ -0,0 +1,9 @@
from django.test import TestCase
class TestX(TestCase):
fixtures = ["fixtures/categories.json", "fixtures/encoding_profiles.json"]
def test_X(self):
# test that adding a subtitle works for a video - needs to have a language set on Admin
pass