19 hours ago · Tech · 0 comments

Hello, loves! A quick report on removing the old content objects in favor of the new. It goes quite well. I moved the new CombinedContent and ContentFactory to a file in the src tree. I figure I’ll keep them in just one file as they go together. Then I modified all the tests that used old content, basically just using an object from the ContentFactory instead: factory = ContentFactory() spikes = factory.spikes(name='spikes') That replaces an old spikes=Animated('spikes') line. Did that throughout. Had to change some lines in spikes tests that were using the old state_number control to use the new control event. Change the text, remove the unnecessary content parameter. I just ticked through each of the old Content subclasses, found the usages, all in tests, fixed up the tests, so they are all still running, but using the new CombinedContent scheme. Then I removed all the classes, one by one, finally removed the whole file. Then I renamed CombinedContent to Content, much better name.…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.