Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

Da persona che odia il proprio nome, vi chiedo: che rapporto avete col vostro?

Uncategorized
6 4 14

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • 0 Votes
    1 Posts
    0 Views
    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 Votes
    1 Posts
    0 Views
    Anyone here have experience with #starlabssystems laptops? Are they good?Need something that can 100% work with Linux (or even FreeBSD). No more barrel pin power (usb-C charging only please). Something that can take some wear & tear Please boost if you can. Thanks!
  • 0 Votes
    1 Posts
    3 Views
    Due droni hanno colpito l’#ambasciata statunitense a #Riyadh, causando lievi danni e senza vittime. L’attacco segna un’escalation delle tensioni nel #Golfo tra #Iran e #StatiUniti.Mio articolo@attualita https://www.corrierepl.it/2026/03/03/droni-sullambasciata-usa-a-riyadh/
  • Danke, dass du das angestoßen hast @freuwesen

    Uncategorized
    8
    0 Votes
    8 Posts
    0 Views
    @kuechenlatein @freuwesen hier das issue: https://github.com/Automattic/wordpress-activitypub/issues/2990hier der fix: https://github.com/Automattic/wordpress-activitypub/pull/2991