Commit c3d2a4c5 authored by Christopher Løkken's avatar Christopher Løkken Committed by Jakob Lund Johannessen
Browse files

pushing some final stuff

parent ed9d8b7e
Pipeline #167852 passed with stages
in 1 minute and 5 seconds
......@@ -15,22 +15,17 @@ users\apps.py 3 0 100%
users\forms.py 15 0 100%
users\models.py 27 1 96%
users\permissions.py 26 2 92%
users\serializers\UserSerializer.py 31 0 100%
users\serializers\UserSerializer.py 31 0 100% # task 2
users\tests.py 151 4 97%
users\urls.py 4 4 0%
users\views.py 134 134 0%
workouts\__init__.py 0 0 100%
workouts\admin.py 6 0 100%
workouts\apps.py 3 0 100%
workouts\migrations\0001_initial.py 8 0 100%
workouts\migrations\0002_auto_20200910_0222.py 6 0 100%
workouts\migrations\0003_rememberme.py 4 0 100%
workouts\migrations\0004_auto_20211020_0950.py 4 0 100%
workouts\migrations\__init__.py 0 0 100%
workouts\mixins.py 5 5 0%
workouts\models.py 47 6 87%
workouts\parsers.py 21 21 0%
workouts\permissions.py 32 0 100%
workouts\permissions.py 32 0 100% # task 2
workouts\serializers.py 78 78 0%
workouts\tests.py 69 0 100%
workouts\urls.py 5 5 0%
......
......@@ -48,16 +48,6 @@ Cypress.Commands.add('runTest', (a, b, c, d, e, f, g, h, status) => {
cy.visit('/logout.html')
})
/**
cy.runTest(0,0,0,0,0,0,0,0,400)
cy.runTest(0,0,0,0,0,0,0,0,400)
cy.runTest(0,0,0,0,0,0,0,0,400)
cy.runTest(0,0,0,0,0,0,0,0,400)
cy.runTest(0,0,0,0,0,0,0,0,400)
cy.runTest(0,0,0,0,0,0,0,0,400)
cy.runTest(0,0,0,0,0,0,0,0,400)
*/
describe('Two way domain tests', () => {
before(() => {
cy.visit('/index.html')
......@@ -87,10 +77,10 @@ describe('Two way domain tests', () => {
cy.runTest(1, 0, 0, 0, 0, 0, 0, 0, 400)
// cy.runTest(0,0,1,0,0,0,0,0,400) done allready
// cy.runTest(0,0,0,1,0,0,0,0,400) done allready
cy.runTest(0, 0, 0, 0, 1, 0, 0, 0, 201)
cy.runTest(0, 0, 0, 0, 0, 1, 0, 0, 201)
cy.runTest(0, 0, 0, 0, 0, 0, 1, 0, 201)
cy.runTest(0, 0, 0, 0, 0, 0, 0, 1, 201)
// cy.runTest(0,0,0,0,1,0,0,0,201) done allready
// cy.runTest(0,0,0,0,0,1,0,0,201) done allready
// cy.runTest(0,0,0,0,0,0,1,0,201) done allready
// cy.runTest(0,0,0,0,0,0,0,1,201) done allready
})
it('invalid email, invalid peer variable', () => {
//cy.runTest(1,1,0,0,0,0,0,0,400) done allready
......@@ -120,18 +110,18 @@ describe('Two way domain tests', () => {
cy.runTest(0, 0, 1, 0, 0, 0, 0, 1, 400)
})
it('valid password1, invalid peer variable', () => {
// cy.runTest(1,0,0,0,0,0,0,0,400)
// cy.runTest(0,1,0,0,0,0,0,0,400)
// cy.runTest(0,0,1,0,0,0,0,0,400)
// cy.runTest(0,0,0,0,1,0,0,0,400)
// cy.runTest(0,0,0,0,0,1,0,0,400)
// cy.runTest(0,0,0,0,0,0,1,0,400)
// cy.runTest(0,0,0,0,0,0,0,1,400)
// cy.runTest(1,0,0,0,0,0,0,0,400) done allready
// cy.runTest(0,1,0,0,0,0,0,0,400) done allready
// cy.runTest(0,0,1,0,0,0,0,0,400) done allready
// cy.runTest(0,0,0,0,1,0,0,0,400) done allready
// cy.runTest(0,0,0,0,0,1,0,0,400) done allready
// cy.runTest(0,0,0,0,0,0,1,0,400) done allready
// cy.runTest(0,0,0,0,0,0,0,1,400) done allready
})
it('invalid password1, invalid peer variable', () => {
// cy.runTest(1,0,0,1,0,0,0,0,400)
// cy.runTest(0,1,0,1,0,0,0,0,400)
// cy.runTest(0,0,1,1,0,0,0,0,400)
// cy.runTest(1,0,0,1,0,0,0,0,400) done allready
// cy.runTest(0,1,0,1,0,0,0,0,400) done allready
// cy.runTest(0,0,1,1,0,0,0,0,400) done allready
cy.runTest(0, 0, 0, 1, 1, 0, 0, 0, 201)
cy.runTest(0, 0, 0, 1, 0, 1, 0, 0, 201)
cy.runTest(0, 0, 0, 1, 0, 0, 1, 0, 201)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment