-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add ui unit test and Merge UI constants and AGA constants #168
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tianyuanzoe Two high level comments other than the import specific comments which are causing tests failures:
- Please move the tests into the root tests dir under ui (you will need to create this directory): tests/unittests/ui/<test_name.py, ...>
- [Not directly related to this PR] Please consider combining the constants.py file in the UI and the https://github.com/autogluon/autogluon-assistant/blob/main/src/autogluon/assistant/constants.py
from unittest.mock import MagicMock, Mock, patch | ||
|
||
import pytest | ||
from constants import PRESET_MAPPING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use complete imports like, currently if we run the tests it fails:
from autogluon.assistant.constants import TEST, TRAIN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tianyuanzoe how did you run the tests on your local machine ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide a short doc string on what each test does and try to add coverage
from unittest.mock import MagicMock, Mock, patch | ||
|
||
import pytest | ||
from constants import PRESET_MAPPING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tianyuanzoe how did you run the tests on your local machine ?
@tianyuanzoe please change the CI files to add your tests, currently I am not able to see any CI runs. |
/platform_tests 4a9b9ee |
@tianyuanzoe thanks for making the changes, have you made sure if they work in the github CI ? |
Description
Adding unit test for Autogluon-Assistant UI and Merge UI constants and AGA constants
How Has This Been Tested?
pytest tests/
)Configuration Changes
Type of Change