I imagine one could create a pytest fixture, one which starts the server and provides convenience functions for common assertions, such that a test could look something like:
Note, that is not a spec, but more of a sketch of the idea. The actual interface would need to use names and methods that match the spec/implementation.
The test would be exposed through entry points such that the mere presence of this irc library in the test environment would make that fixture available.
I imagine one could create a pytest fixture, one which starts the server and provides convenience functions for common assertions, such that a test could look something like:
Note, that is not a spec, but more of a sketch of the idea. The actual interface would need to use names and methods that match the spec/implementation.
The test would be exposed through entry points such that the mere presence of this irc library in the test environment would make that fixture available.