@@ -0,0 +1,1829 @@
+%0Adef test_create_user(client):%0A    result = client.post(%22/users/%22, data=%7B%22username%22: %22test%22, %22password%22: %221234%22%7D)%0A    assert result.status_code == 200%0A    assert result.get_json() == %7B%22msg%22: %22User created succesfully!%22%7D%0A%0Adef test_get_all_users(client):%0A    result = client.get(%22/users/%22)%0A    assert result.status_code == 200%0A    assert result.get_json() == %7B%22users%22: %5B%22Bob%22, %22Alice%22, %22James%22%5D%7D%0A%0Adef test_get_specific_user(client):%0A    result = client.get(%22/users/5484626%22)%0A    assert result.status_code == 200%0A    assert result.get_json() == %7B%22user%22: %7B%22name%22: %22Bob%22, %22id%22: %225484626%22%7D%7D%0A%0Adef test_search_users(client):%0A    result = client.post(%22/users/search%22, data=%7B%22query%22: %22query_sample%22%7D)%0A    assert result.status_code == 200%0A    assert result.get_json() == %7B%22users%22: %5B%22Bob%22, %22Alice%22, %22James%22%5D%7D%0A%0Adef test_search_users(client):%0A    result = client.put(%22/users/546313/email%22, data=%7B%22email%22: %22new_email@email.com%22%7D)%0A    assert result.status_code == 200%0A    assert result.get_json() == %7B%22msg%22: %22User email was changed succesfully!%22%7D%0A%0Adef test_change_password(client):%0A    result = client.put(%22/users/546313/password%22, data=%7B%22password%22: %22new_password123%22%7D)%0A    assert result.status_code == 200%0A    assert result.get_json() == %7B%22msg%22: %22User password was changed succesfully!%22%7D%0A%0Adef test_change_role(client):%0A    result = client.put(%22/users/546313/role%22, data=%7B%22role%22: %22new_role%22%7D)%0A    assert result.status_code == 200%0A    assert result.get_json() == %7B%22msg%22: %22User role was changed succesfully!%22%7D%0A%0Adef test_delete_user(client):%0A    result = client.delete(%22/users/546313%22)%0A    assert result.status_code == 200%0A    assert result.get_json() == %7B%22msg%22: %22User was deleted succesfully!%22%7D%0A%0Adef test_login(client):%0A    result = client.post(%22/users/login%22, data=%7B%22username%22: %22user%22, %22password%22: %22pwd123%22%7D)%0A    assert result.status_code == 200%0A

ADD Network users unit tests