This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import ctypes | |
import wave | |
import sys | |
pa = ctypes.cdll.LoadLibrary('libpulse-simple.so.0') | |
PA_STREAM_PLAYBACK = 1 | |
PA_SAMPLE_S16LE = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run PyTest with coverage and linting on specified application part. | |
# | |
# Useful shortcut when you're working at one class/function/module and you | |
# don't want to run all your tests and need to measure coverage only for what | |
# you're currently testing. | |
# | |
# Example:: | |
# | |
# $ test_part tests/test_views.py app/views.py -vsk LoginView | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
class _DataStructureMeta(type): | |
def __new__(cls, class_name, bases, members): | |
try: | |
annotations = members['__annotations__'] | |
except KeyError: | |
pass |