test(core): place holder tests for notes model

!8 closes #7
This commit is contained in:
2024-05-21 01:37:53 +09:30
parent 4df25575e8
commit 4562e921e9

View File

@ -0,0 +1,148 @@
from django.test import TestCase, Client
import pytest
import unittest
import requests
@pytest.mark.skip(reason="to be written")
def test_note_new_correct_usercreated():
""" The user who added the note must be added to the note """
pass
@pytest.mark.skip(reason="to be written")
def test_note_new_correct_usermodified():
""" The user who edited the note must be added to the note """
pass
@pytest.mark.skip(reason="to be written")
def test_note_new_correct_device():
""" On creation of device note the device must be added """
pass
@pytest.mark.skip(reason="to be written")
def test_note_new_correct_operating_system():
""" On creation of operating system note the operating system must be added """
pass
@pytest.mark.skip(reason="to be written")
def test_note_new_correct_software():
""" On creation of software note the software must be added """
pass
@pytest.mark.skip(reason="to be written")
def test_note_auth_view_device():
""" Ensure that if the user doesn't have view permissions for notes, they can't see any notes
user must also have view permissions for the opject the note is for
"""
pass
@pytest.mark.skip(reason="to be written")
def test_note_auth_add_device():
""" Ensure that if the user doesn't have add permissions for notes, they can't add any notes
user must also have view permissions for the opject the note is for
"""
pass
@pytest.mark.skip(reason="to be written")
def test_note_auth_edit_device():
""" Ensure that if the user doesn't have edit permissions for notes, they can't edit any notes
user must also have view permissions for the opject the note is for
"""
pass
@pytest.mark.skip(reason="to be written")
def test_note_auth_delete_device():
""" Ensure that if the user doesn't have delete permissions for notes, they can't delete any notes
user must also have view permissions for the opject the note is for
"""
pass
@pytest.mark.skip(reason="to be written")
def test_note_auth_view_operating_system():
""" Ensure that if the user doesn't have view permissions for notes, they can't see any notes
user must also have view permissions for the opject the note is for
"""
pass
@pytest.mark.skip(reason="to be written")
def test_note_auth_add_operating_system():
""" Ensure that if the user doesn't have add permissions for notes, they can't add any notes
user must also have view permissions for the opject the note is for
"""
pass
@pytest.mark.skip(reason="to be written")
def test_note_auth_edit_operating_system():
""" Ensure that if the user doesn't have edit permissions for notes, they can't edit any notes
user must also have view permissions for the opject the note is for
"""
pass
@pytest.mark.skip(reason="to be written")
def test_note_auth_delete_operating_system():
""" Ensure that if the user doesn't have delete permissions for notes, they can't delete any notes
user must also have view permissions for the opject the note is for
"""
pass
@pytest.mark.skip(reason="to be written")
def test_note_auth_view_software():
""" Ensure that if the user doesn't have view permissions for notes, they can't see any notes
user must also have view permissions for the opject the note is for
"""
pass
@pytest.mark.skip(reason="to be written")
def test_note_auth_add_software():
""" Ensure that if the user doesn't have add permissions for notes, they can't add any notes
user must also have view permissions for the opject the note is for
"""
pass
@pytest.mark.skip(reason="to be written")
def test_note_auth_edit_software():
""" Ensure that if the user doesn't have edit permissions for notes, they can't edit any notes
user must also have view permissions for the opject the note is for
"""
pass
@pytest.mark.skip(reason="to be written")
def test_note_auth_delete_software():
""" Ensure that if the user doesn't have delete permissions for notes, they can't delete any notes
user must also have view permissions for the opject the note is for
"""
pass