Skip to content

Comments

Feature/bknd python#20

Open
IlnurHA wants to merge 46 commits intomainfrom
feature/BKND-python
Open

Feature/bknd python#20
IlnurHA wants to merge 46 commits intomainfrom
feature/BKND-python

Conversation

@IlnurHA
Copy link
Collaborator

@IlnurHA IlnurHA commented Jun 18, 2022

More tests for API

Configuration for future Database

adariax and others added 30 commits May 31, 2022 00:54
	Added user, quiz, question, answer tables
Model amendings:
	Added Answer class for answers table
	Amended class Question, due to the changing above

Orm:
	mapping added

__init__'s
	added imports

tests:
	just created file to write tests for existing code
flask_app:
	start basic functions

repository:
	function to get repository from whole project

model:
	without major changes
Main: Resources added (User, Quiz, Question, Answer)
flask_app:
	start basic functions

repository:
	function to get repository from whole project

model:
	without major changes
	Amendings in model method - all classes takes the same arguments as their corresponding tables have

	repository - fake repository added to test API

	api_initialization - changed urls for API, to get all necessary information for processing request

	QuizResource - fixed bugs

	test, test_main - files used for testing
	Declaration of all methods for API
	!!! There are NOT implemented methods !!! (Added TODOs in comments)

Model:
	deletion fields that are not in DB

UserResource:
	Added one more resource (UserRegistractionResource) to make possible registration requests

Api_initialization:
	added one more api request for UserRegistrationResource

Test:
added more tests for API
Nertsal and others added 16 commits June 14, 2022 15:21
Flask app configuration (for future db)

Added tests for API
	Added tests for quizzes and questions

Flask app:
	switches to fake repository
	'/'
	'/lobby'
	'/login'
	'/register'

Other changes:
	flask_app:
		webhandlers for pages and tests

	model:
		Added 'to_dict' operation

	repository:
		Added debug operations ('get_users')

	orm:
		Some tables corrected
		Creation of tables

	tests:
		test_api - small changes
		test_orm - first test for orm (user_creation)
	user: -nickname, +name, +surname
	question: +time_limit
Amendings of Resources of API
Creating algorithms to create user, quiz, and add them to DB

Implemented support function to process data in services
	Quiz creation process is working

services:
	Algorithm for quiz collecting

model:
	small amendings

UserResource:
	Rename of api resources to UserLoginResource and UserRegistrationResource

api_initialization:
	changes of login and registration urls

test_api:
	changing test for quiz creations
	quiz, question, answer delete functions

Quiz Resource:
	deletion, creation

test_api:
	quiz_deletion test

orm:
	mappers for foreign_key update
	Rewrited foreign key mode (To CASCADE mode)

QuizResource:
	Creation of quiz extracted into a function
	Quiz put request (recreation of quiz)

Test_api:
	quiz put request added
	Catching error if user creates several accounts with the same email

test_orm:
	Created more tests

test_api:
	added assertions

repository:
	fixed bugs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants