I have two projects, one is working and the other isn’t. I want to make the first project include the same functionality from the second project, or the second project to work as the first one does.

I’ve thought of adding tests to the first project that I can use with the second project so that they end up working the same way. But I don’t know which kind of tests to write, should I be using a bunch of videos as test subjects? I think that would make testing very slow, but I don’t know what else to do.

https://codeberg.org/LifeSymbiont/video-diet

https://codeberg.org/LifeSymbiont/reduce_video_size/

@thann
mod
admin
link
fedilink
114d

Typically each project would have unit-tests that cover their own different edge cases, and the one that imports the other would have 1 end-to-end test that covers both functionality but doesn’t explore all of the edge cases.

Ask specific questions about how to code something in python

Python docs (tutorial)
Intro to programming - University of Helsinki

General python discussion on lemmy.ml

Create Post From:
lemmy.ml

  • 0 users online
  • 1 user / day
  • 3 users / week
  • 3 users / month
  • 4 users / 6 months
  • 28 subscribers
  • 6 Posts
  • 9 Comments
  • Modlog