Assumption work to go in this file in root directory
- Tokens, email, password, firstname and lastname are all strings
- u_id is a integer
- Tokens will be unique with each session
- u_id will be constant throughout the users existance
- The python value None, negative numbers and non-integers are not used as u_id's
- Email addresses other than UNSW provided email addresses can be used to register
- First and last names can be anywhere between 1 and 50 (inclusive)
- InputError if no data is entered
- In the first register test it is assumed no users have been made and the test will make the first
- For login and logout tests it is assumed that the regester function within auth.py is functional
- If a invalid token is given to logout function in auth.py an AccessError occurs
- When you register you are immediately logged-in
- 'NotAToken' is not a token
- auth.py and all its functions and working as required without any errors
- user_profile can be used by a user on themselves
- Users handle is passed as a string
- Tests for user_profile_sethandle assume user_profile can be used
- Handle must be between 3 and 20 characters (inclusive)
- 'NotAToken' is not a token
- First and last names must be between 1 and 50 characters in length
- user_profile accurately reflects changes in the users name and email
- If we register a user using a specific email, that email is now in use (cannot be updated for use by another user)
- An "is_email" type function is correctly implemented which identifies that "help.com" is not a valid email
- when user makes channel, theyre automatically the owner
- can have multiple channels with the same name
- there is no limit into how many channels a user can have
- channel id's will be numbers
- all users will get tokens
- always avalibale to make more users
- u_id will always be a number, starting at 1 and increasing by 1 with each user
- adding an owner will never be rejected
- wont reject if user isnt in any channels to begin with
- If no messages added in channel_messages, messages key is an empty array
- When testing for channel_messages, the timestamp for the message created is within 1,000 seconds of the timestamp created by the test
- Channels in channels_listall are listed in the order of when they were created.
- auth.py and all its functions and working as required without any errors
- channels_create() is implemented correctly
- (x * 1001) is a string containing more than 1k characters
- 9999999999 is an invalid channel_id
- A channel cannot exist if it has not been created
- A user who has not been invited to or joined a non public channel does not have authorisation to send messages to that channel
- If you succesfully remove a message once, then that message cannot be removed again
- Someone who has not sent a message or who is not the owner/ admin of a channel cannot remove a message
- The message_edit function calls message_remove if new message is an empty string
- The search function should find a message that has successfully been sent to a channel by an authorised user
- If no messages have been sent the search function should return no messages
- The timer will start and users with a different timezone will recieve the message at the designated time the user specified
- User alls means not including users that have made an account but deleted it
- Can change a users permissions without their approval
- When a user is deleted, their messages with their user name will still be visable but unable to access user from message
- Stand ups will always be availiable to use
- Message order will be determined when the message is delievered (regardless of the time its sent)