Rob Hallam
192c952c2d
test: add TestLoudAudioFEFunctional
Functional tests for LoudAudioFeatureExtractor
Currently uses one manually-generated video with blank audio except between
15-20s where 1-2 sine tones are present
преди 2 месеца
Rob Hallam
428032d841
test: add FEFunctionalTest base class for FE tests
Only has a single property at present: SAMPLE_DIR for the path to where
sample videos are stored
TestVideoActivityFEFunctional now inherits from this instead of unittest.TestCase
преди 2 месеца
Rob Hallam
2e45486372
test: add TestVideoActivityFEFunctional
Tests VAFE using a manually-created 30 seconds video with activity between
15 and 20 seconds.
Relatively quick!
преди 2 месеца
Rob Hallam
0d2096aed6
refactor!: rename video_producers → producers
Since it no longer simply produces videos this name is preferred
Also update tests to use updated module name
преди 3 месеца
Rob Hallam
445efac7f3
test: [producers] add test_produce() functionality
Uses unittest.mock.path to patch out call to matplotlib.pyplot.savefig()
TODO: better, more-granular tests of the bits of functionality here
преди 3 месеца
Rob Hallam
ff09cd4b8f
test: [mocks] add attrs to MockFeature + MockSource.duration()
преди 3 месеца
Rob Hallam
649fcae070
test: expand TestFfmpegVideoProducer coverage
mocks out calls to ffmpeg for obvious reasons
преди 3 месеца
Rob Hallam
3dc2a5c858
test: add mocks module for commonly-mocked objects
Includes:
- MockInterval
- MockFeature
- MockSource
преди 3 месеца
Rob Hallam
6cb0d723ac
test: [utils] add TestFeature fixtures
Gets utils coverage up to 100% (for now)
преди 3 месеца
Rob Hallam
7ca0720be2
test: add Interval.test_eq method
@see : 0a08af4
преди 3 месеца
Rob Hallam
0a08af4972
test: add MockSource & MockInterval to test Feature
преди 3 месеца
Rob Hallam
1bd176848a
test [utils] add Interval tests
Covers:
- to_json
- move_end
- update_duration
- unhappy path exceptions (mostly init)
преди 3 месеца
Rob Hallam
35d25c6ff2
test: [utils] add TestSource.test_to_json
преди 3 месеца
Rob Hallam
33ccffaead
test: add TestLAFE.t_extract_mocked_get)loudnesses()
Gets test coverage for this module to 100%! (for now)
преди 3 месеца
Rob Hallam
e3b9862bcf
test: add TestFfmpegVideoProducer
преди 3 месеца
Rob Hallam
48ead78c9a
test: add TestJSONP & TestVisualisationP
преди 3 месеца
Rob Hallam
5993289d7d
test: add move_end method for overlap testing
преди 3 месеца
Rob Hallam
fb8f3270e5
test: add mocked loudnorm to TestLAFE
преди 3 месеца
Rob Hallam
028adbc640
test: add TestJSONFE with mocks
преди 3 месеца
Rob Hallam
bee133d53f
test: Add mocked test calls to TestLFE
преди 3 месеца
Rob Hallam
4eaddf9db2
test: add TestVAFE
преди 3 месеца
Rob Hallam
d38d5e619f
test: add LAFE - no input files & test_extract()
преди 3 месеца
Rob Hallam
9bdd90c4c0
test: add TestLAFE
TestLoudAudioFeatureExtractor -- init only
преди 3 месеца
Rob Hallam
28e33ed47a
test: add TestSourceMedia & RFE.test_no_input
TestSourceMedia is a mockinobject so
TODO: rename
преди 3 месеца
Rob Hallam
cd8d57e9b1
test: add tests for LAFE and RFE
Initialset of tests for LaughterFeatureExtractor and
RandomFeatureExtractor
преди 3 месеца
Rob Hallam
fcfc1773bc
feat: add suite of tests for utils module
This covers:
- Source
- SourceMedia
- Interval
преди 4 месеца
Rob Hallam
558739a0cd
feat: add __init__, TestOverlapConsolidation suite
преди 4 месеца
Rob Hallam
05a67c6264
feat: add context to ease testing
преди 4 месеца