Skip to content

Adds more tests for the File classes to ensure behaviour ahead of refactor - #571

Merged
rtibbles merged 3 commits into
learningequality:developfrom
rtibbles:more_files_tests
Feb 17, 2025
Merged

Adds more tests for the File classes to ensure behaviour ahead of refactor#571
rtibbles merged 3 commits into
learningequality:developfrom
rtibbles:more_files_tests

Conversation

@rtibbles

@rtibbles rtibbles commented Feb 15, 2025

Copy link
Copy Markdown
Member

Summary

  • Tweaks test to cleanup file that is cloned for a test
  • Deletes a bunch of tests that simply did assert True and were doing nothing of any use
  • Adds tests for File class and subclass behaviours
  • Skips some tests that show what they should do, but currently fail to.
  • These tests will act as a spec for some of the updates in subsequent refactor.

References

In support of #558

Reviewer guidance

Do all tests make sense? Do they pass on all platforms for all Python versions?

@marcellamaki marcellamaki left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this is only adding tests, and the code is very readable, i will approve. we can adjust (or make further additions) to tests as needed in the future in the refactor if different behavior is needed

@rtibbles
rtibbles merged commit 0c3cd86 into learningequality:develop Feb 17, 2025
@rtibbles
rtibbles deleted the more_files_tests branch February 17, 2025 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants