LibreLingo icon indicating copy to clipboard operation
LibreLingo copied to clipboard

For testing: Replace fakes by real examples

Open szabgab opened this issue 3 years ago • 2 comments

I don't really understand the value of the fakes in the python test code. After all we are not testing some hard to replicate objects but plain yaml files.

IMHO it would be much better to move all the examples to the test course (we might need more test courses for separate examples). That way we would test real yaml constructs and we could also use the same yaml files in a tutorial pointing to various examples.

szabgab avatar Dec 24 '21 06:12 szabgab

yes, I agree with this

kantord avatar Dec 24 '21 11:12 kantord

only one thing. the value of the fakes package is that it's easy to re-use in 3rd party scripts. you can re-use the fakes in another software that you are writing based on librelingo.

I'm not sure how valuable this feature is and whether we can practically keep this feature while also using fake courses as the main source of fake data? :thinking: perhaps somehow linking the fake course data into this library or something

kantord avatar Dec 24 '21 11:12 kantord