Getting started: https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia || Active mentors on chat: @gp201, @Nik-09, @chris7716 (Expect a relpy within 24 hrs.)
How to iterate over all the values inside the choices for item selection single interaction?
Following in the yml content
customization_args:
choices:
value:
- content_id: ca_choices_5
html: <p>Good option A.</p>
- content_id: ca_choices_6
html: <p>Bad option B.</p>
- content_id: ca_choices_7
html: <p>Good option C.</p>
Following is the dict
customization_args = {
'choices': {'value': [
{
'content_id': 'ca_choices_0',
'html': '<p>This is value1 for DragAndDropSortInput</p>'
},
{
'content_id': 'ca_choices_1',
'html': '<p>This is value2 for DragAndDropSortInput</p>'
}
]}}
python -m scripts.linters.pre_commit_linter
Traceback (most recent call last):
File "/.pyenv/versions/3.7.10/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/.pyenv/versions/3.7.10/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opensource/oppia/scripts/linters/pre_commit_linter.py", line 728, in <module>
main()
File "/opensource/oppia/scripts/linters/pre_commit_linter.py", line 620, in main
namespace=namespace
File "/opensource/oppia/scripts/linters/pre_commit_linter.py", line 483, in _get_all_filepaths
filename for filename in all_filepaths if not
File "/opensource/oppia/scripts/linters/pre_commit_linter.py", line 486, in <listcomp>
in general_purpose_linter.EXCLUDED_PATHS
File "/opensource/oppia/scripts/linters/pre_commit_linter.py", line 485, in <genexpr>
fnmatch.fnmatch(filename, pattern) for pattern # pylint: disable=comprehension-escape
File "/.pyenv/versions/3.7.10/lib/python3.7/fnmatch.py", line 36, in fnmatch
return fnmatchcase(name, pat)
File "/.pyenv/versions/3.7.10/lib/python3.7/fnmatch.py", line 71, in fnmatchcase
return match(name) is not None
TypeError: cannot use a string pattern on a bytes-like object
Hello Devs,
Hope you are well. We are excited that a Tech Talk on Frontend Testing is being organized today i.e. 28st August (Saturday) - 22:30 IST (17:00 UTC).
The talk would cover the following points:
After the talk, you will get a brief idea about Frontend Unit testing, which would be helpful to you, as you'll have to write Frontend Tests for your future contributions to Oppia.
Link for the event: https://meet.google.com/nuj-jate-rfz
Hoping to see you all there! If you have any questions/suggestions you can add them to this Slido Link: https://app.sli.do/event/bxrnwack
Hello Devs,
Hope you are well. We are excited that a Tech Talk on Frontend Testing is being organized today i.e. 28st August (Saturday) - 22:30 IST (17:00 UTC).
The talk would cover the following points:
- Writing robust frontend unit tests
- Covering various scenarios in the code (testing the code thoroughly instead
of just covering lines)- Different scenarios that are difficult to test
- Avoiding flakes
- Identifying and resolving flakes if you get any
After the talk, you will get a brief idea about Frontend Unit testing, which would be helpful to you, as you'll have to write Frontend Tests for your future contributions to Oppia.
Link for the event: https://meet.google.com/nuj-jate-rfz
Hoping to see you all there! If you have any questions/suggestions you can add them to this Slido Link: https://app.sli.do/event/bxrnwack
@/all Reminder