Journal of my recent activities

Mocking console for cli unittesting

user_input = ['6 1']
expected_output = '84 + 7 =

' \r ' OK! '

with patch('builtins.input', side_effect=user_input):
    with patch('sys.stdout', new=io.StringIO()) as output:
        dodawanie(84, 7)
        self.assertEqual(expected_output, output.getvalue())

How to test input processing in Python 3

#python #testing

6 years ago

QuantumCircut is the quantum program. You build it with registers, quantum gates. Then compile and run on the quantum chip, without interaction. In the end you get results thanks to measure gates.

#qc

6 years ago

Small fix Issue 915 for Qiskit Terra.

#qc

6 years ago

Small help for Qiskit Terra on Github and StackOverflow.

#qc

6 years ago

Created IBM Quantum backend dashboard: https://lukaszherok.com/dash

#qc #flask

6 years ago

Using IBM Q Experience Qunatum Computer as perfect random number generator.

#qc

7 years ago

New Ansible playbook for automatic software upgrade on multiple servers.

7 years ago

Fedora 29 installed on the old laptop with WinXP. Need to move Win partition with GParted to make place for grub2 bootloader.

#linux

7 years ago

Installed Pi-Hole (awesome installer) in my home. Now I'm Ad free :D

#rpi

7 years ago