Beispiel #1
0
 def test_02_get_one_user(self):
     """
     1. Choose a random, existing.
     2. Get only that one.
     """
     the_user = User()
     random_user = the_user.choose_random()
     the_user.get_one(random_user)
Beispiel #2
0
    def test_03_post_one(self):
        """
        1. Choose random, required existing data.
        2. Create new.
        3. Get the newly created.
        """

        the_user = User()
        random_user = the_user.choose_random()
        json_user = the_user.post_one(random_user)
        the_user.get_one(json_user)
Beispiel #3
0
    def test_04_patch_one(self):
        """
        1. Choose random, required existing data.
        2. Create new.
        3. Get the newly created.
        4. Choose another random, required existing data.
        5. Update the created.
        6. Get the updates.
        """

        the_user = User()
        random_user = the_user.choose_random()
        json_user = the_user.post_one(random_user)
        json_user = the_user.get_one(json_user)
        the_user.patch_one(json_user)
        the_user.get_one(json_user)