Salta al contenuto

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  • 0 Votazioni
    6 Post
    0 Visualizzazioni
    @aslakr @Edent @example a bug I would say !? ;)can you maybe file an issue on GitHub, documenting the problem!?
  • Thanks.

    Mondo boostmedia opensource dev testing linux freesoftware trashware privacy
    1
    4
    0 Votazioni
    1 Post
    12 Visualizzazioni
    Thanks. And thanks for letting me discover Blacklite, also!https://themarkup.org/blacklight?url=boostmedia.it&device=desktop&location=eu&force=true#boostmedia #opensource #dev #testing #linux #freesoftware #trashware #privacy #freedom
  • 0 Votazioni
    1 Post
    8 Visualizzazioni
    📢 Entra a far parte di Boost Media APS!Se credi nell'open source e sai:💚 sviluppare💚 creare grafiche💚 redigere testi💚 creare e montare video💚 testare le nostre applicazioni💚 ridare nuova vita a pc per il nostro progetto solidaleStiamo cercando proprio te!Diventa nostro socio e facciamo la differenza insieme!https://boostmedia.it#boostmedia #opensource #dev #testing #linux #freesoftware #trashware #privacy #freedom
  • 0 Votazioni
    1 Post
    12 Visualizzazioni
    I have a question about Python libraries and testing scope.If I'm importing 'serial' in my library, and use it like the following to create a connection to a sensor:--- start code ---import serialclass Sensor: def __init__(self, serial_device): self.__serial_device = serial_device try: self.__connection = serial.Serial( port=serial_device, baudrate=9600, bytesize=serial.EIGHTBITS, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, ) except serial.SerialException: print("Could not establish serial connection to sensor")--- end code ---how much testing should I do around the serial connection? Just mock up a few buffers (byte streams), and see how my class handles unexpected input?One the one hand, I want to make the library as solid as possible. On the other hand, I don't want to run tests on code I don't control (the library module). I know of the 'mock-serial' utility, but haven't used it.The aim is to make a Python version of my Arduino library for the CozIR Ambient CO2 sensor:https://codeberg.org/mjack/ambientCO2/src/branch/develop#python #unittest #testing #sensors
  • 0 Votazioni
    2 Post
    17 Visualizzazioni
    @GetMischPreparing pasta is so easy that I really can't understand why people buys it precooked...