DSGT-DLP / Deep-Learning-Playground

Web Application where people new to Deep Learning can input a dataset and toy around with basic Pytorch modules without writing any code
MIT License
24 stars 8 forks source link

Unit Tests for /columns API Endpoint #1060

Closed karkir0003 closed 10 months ago

karkir0003 commented 10 months ago

Unit tests for /columns Dataset API Endpoint

Github Issue Number Here: #1059 What user problem are we solving? Currently, we have unit tests in pytest for the core training files. However, to increase test coverage on our backend, we should add unit tests for the Django training endpoints we have in the codebase.

What solution does this PR provide? Unit tests for the /columns API Route under /api/datasets/default/columns endpoint.

Testing Methodology Checkout this branch on your local machine and then run cd training && pytest tests/ at the root of the project

Any other considerations For any utility files that are created for the purpose of being reused across unit tests within training/ please add it under test_utils.py (see example functions I've added)

sweep-ai[bot] commented 10 months ago

Apply Sweep Rules to your PR?

sonarcloud[bot] commented 10 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication