jdeeth / dcszap Goto Github PK
View Code? Open in Web Editor NEWDCS-BIOS client to automate aircraft setup
License: MIT License
DCS-BIOS client to automate aircraft setup
License: MIT License
e.g.
assert [c.args[0] for c in mock_socket.sendto.mock_calls] == [
b"PANEL_LIGHTING 1\n",
b"DASHBOARD_LIGHTING 3276\n",
b"TV_ON_OFF 1\n",
]
assert [c.args[0] for c in mock_sleep.mock_calls] == [0.3, 0.3, 0.8, 0.3]
doesn't ensure DASHBOARD_LIGHTING
is 0.3 seconds later than PANEL_LIGHTING
Currently they're loaded when displayed, not when they are selected.
In Python 3.7, a mock call is a tuple. From 3.8 onwards it's a named tuple. In 3.7, assert [c.args[0] for c in mocked_item.mock_calls] = ["a", "b", "c"]
does something non-obvious like create a method named args
, and [0]
returns its name.
Solution is to access the call's args by its position in the tuple - some_call[1]
not some_call.args
e.g. on Linux/Termux
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.