Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Get all Reviews #23

Open
jamalbrowning opened this issue Mar 3, 2021 · 1 comment
Open

Test Get all Reviews #23

jamalbrowning opened this issue Mar 3, 2021 · 1 comment
Labels
MVP This issue or pull request already exists

Comments

@jamalbrowning
Copy link
Owner

No description provided.

@jamalbrowning
Copy link
Owner Author

Create a test to get all reviews for user.

Example

def test_get_all_products(self):
        """
        Ensure we can get a collection of products.
        """
        self.test_create_product()
        self.test_create_product()
        self.test_create_product()

        url = "/products"

        response = self.client.get(url, None, format='json')
        json_response = json.loads(response.content)
        self.assertEqual(response.status_code, status.HTTP_200_OK)
        self.assertEqual(len(json_response), 3)

@jamalbrowning jamalbrowning added MVP This issue or pull request already exists and removed MVP This issue or pull request already exists labels Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MVP This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant