-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Bszabo/course optimizer tests #36175
base: 2u/course-optimizer
Are you sure you want to change the base?
Conversation
LOGGER.debug(f'[Link Check] request batch {i // batch_size + 1} of {url_count // batch_size + 1}') | ||
batch_results = await _validate_batch(batch, course_key) | ||
responses.extend(batch_results) | ||
LOGGER.debug(f'[Link Check] request batch {i // batch_size + 1} of {url_count // batch_size + 1}') |
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.
Should we leave this logging statement here?
Or should we update this logging statement to be recorded on datadog in stage and prod?
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.
@schenedx What's involved in having it be recorded on Datadog?
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.
See my inline comments
def test_http_and_https_recognized_as_studio_url_schemes(self): | ||
assert True | ||
|
||
@pytest.mark.skip(reason="This test is not yet implemented") |
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.
Instead of skipping, could you just remove the test case? I think we got enough tests for now.
|
||
def test_url_subsitution_on_containers(self): | ||
raise NotImplementedError | ||
# TODO |
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.
Could you remove the todo? If in the future, we found this test is valuable, we can add it.
I've removed all skipped tests and marked comments requesting their removal as resolved. |
Added unit tests, plus one integration test, to the Course Optimizer test suite.
Note that the test development task is incomplete. Some tests remain in "skip" state, and there are TODO statements in the test file.