aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_cc_oop.py
Commit message (Collapse)AuthorAgeFilesLines
* rename test -> testsAdam Janovsky2021-05-101-166/+0
|
* delete print statement in testsAdam Janovsky2021-04-191-3/+0
|
* refactor folder strucureAdam Janovsky2021-04-191-2/+2
|
* fix test, do not store json nowAdam Janovsky2021-04-161-1/+1
|
* set test csv file to windows-1252 encodingAdam Janovsky2021-04-151-15/+18
|
* move cpe match under heuristics fieldAdam Janovsky2021-04-131-3/+0
|
* add class for capturing heuristicly obtained dataAdam Janovsky2021-04-131-0/+3
|
* fix testsAdam Janovsky2021-03-021-0/+3
|
* Introduce state variable of CCDatasetAdam Janovsky2021-02-201-0/+1
| | | | | | - The variable checks which actions were already performed - Dataset now checks if someone attempts to e.g. convert pdf->txt prior to downloading - Also, operations on certificates are performed only on those certs for which the preceeding operation was successful
* Add explicit certificate status active/archivedAdam Janovsky2021-02-201-3/+6
| | | | | | | - Status active or archived held as a string variable - Instead of implicit computation from not-valid-before/after - The status is computed from the filename of the csv/html source - The status is serialized into json
* Plug-in old extractions methods to new OOP frameAdam Janovsky2021-02-191-15/+19
| | | | | | | | - Tests for txt file processing still missing - The internals of the txt processing methods are still authored by petrs - They are however fully parallel and called in an OOP fashion - Overall, all results are gathered in a single json file - All results are implicitly paired
* Rethought way of processing certificatesAdam Janovsky2020-11-281-28/+32
| | | | | | - Every certificate now implements a static method for its processing - These are called in parallel - There's some code duplication at the moment, stuff can be simplified.
* Improve (de)serialization of objects from/in jsonAdam Janovsky2020-11-271-26/+17
| | | | | | | | - Every complex serialiazable object now inherits from `ComplexSerializableType` - All such objects now implement `to_dict()`, `from_dict()` methods - Some objects for which standalone json file makes sense implement `to_json()`, `from_json()` - Rewrite test and demos - Datasets `root_dir` is now not part of serialization, but only internal representation
* Fix cc_oop_test of pdf file conversionAdam Janovsky2020-11-271-5/+6
| | | | | | | It seems that pdftotext is not fully reproducible and gives platform specific results. So we dont check for full file equality, but rather for the existence of converted file. We further check that the created file size roughly matches the one freshly produced by Travis pdftotext.
* added test for CC pdf conversionAdam Janovsky2020-11-271-1/+11
|
* get rid of convert_pdf() in testsAdam Janovsky2020-11-261-1/+0
|
* Test for download of pdf filesAdam Janovsky2020-11-251-0/+22
| | | | The test assumes that the files download correctly.
* simplified (de)serialization using explicit _type attributeAdam Janovsky2020-11-181-3/+4
|
* Added basic OOP tests for CC dataset and certAdam Janovsky2020-11-161-0/+127