Logo white

Peter M. Groen / oletools

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Commits 1,521
  • Compare
  • Branches 1
  • Tags 0
  • oletools
  • tests
  • common
22 Dec, 2023
7 commits
  • tests: Fix log-helper test on windows
    ea2a7fbe
    Christian Herdtweck authored
    2023-12-22 13:04:37 +0100  
    Browse Dir »
  • log_helper: Test and improve error-handling ...
    58bb3b81
    If there is an error in log-handling (e.g. wrong args to logger call) do
    not fail or raise but produce something helpful
    Christian Herdtweck authored
    2023-12-22 13:04:37 +0100  
    Browse Dir »
  • tests: Add 2 tests for json formatting ...
    28c0449c
    Need to make sure that json output is formatted since e.g. warning messages
    are created like this:
       log.warning('%s', actual_message)
    so without proper formatting the message is just "%s".
    
    Also test that exception info is added as usual.
    Christian Herdtweck authored
    2023-12-22 13:04:37 +0100  
    Browse Dir »
  • tests: Add source position to warning messages ...
    dc8c0a9d
    Warning message includes source file and line number, hope this is not
    dependent on python version..
    Christian Herdtweck authored
    2023-12-22 13:04:37 +0100  
    Browse Dir »
  • tests: Add another warnings test
    c788ceaf
    Christian Herdtweck authored
    2023-12-22 13:04:37 +0100  
    Browse Dir »
  • tests: Add warnings to log_helper test ...
    6bc04064
    Encountered an example where a 3rd-party library issued a warning that
    messed up the json output. Create test to reproduce this.
    Christian Herdtweck authored
    2023-12-22 13:04:37 +0100  
    Browse Dir »
  • tests: Fix tests on windows ...
    26f922b5
    (1) Cannot open a temp file for writing from 2 python processes
        simultaneously
    (2) Need proper environment setup for Popen (thanks to metatoaster's
        reply on stackoverflow https://stackoverflow.com/a/72845540/4405656)
    (3) Need different os-separator, so replace hard-coded '/' with
        os.path.join or os.sep
    (4) Minor cleanup of imports & whitespace in test_issue_*.py
    
    There are still 2 tests that should be adapted to Windows, but those are
    lower-prio in my eyes.
    
    Also, unittest run on my windows VM creates many resource warnings due to
    non-closed file descriptors. Should address that some (future) day.
    Christian Herdtweck authored
    2023-12-22 13:04:37 +0100  
    Browse Dir »

16 Feb, 2022
3 commits
  • tests: add test for log when imported by 3rd party
    6c1c5231
    Christian Herdtweck authored
    2022-02-16 13:56:17 +0100  
    Browse Dir »
  • tests: make log test modules look more like regular ones
    79b3c649
    Christian Herdtweck authored
    2022-02-16 13:56:17 +0100  
    Browse Dir »
  • tests: Remove unused variables
    a3a57750
    Christian Herdtweck authored
    2022-02-16 13:56:17 +0100  
    Browse Dir »

06 May, 2021
1 commit
  • ensure uppercase KNOWN_CLSIDS matching
    2e20e6fa
    Alexander Sennhauser authored
    2021-05-06 10:27:37 +0000  
    Browse Dir »

05 Nov, 2019
1 commit
  • tests: fixed exception in test_encoding_handler.py
    a85860db
    decalage2 authored
    2019-11-05 22:34:24 +0100  
    Browse Dir »

31 Oct, 2019
1 commit
  • tests: small fix in test_encoding_handler.py
    6b7a773f
    decalage2 authored
    2019-10-31 14:36:12 +0100  
    Browse Dir »

16 Jul, 2019
3 commits
  • various: adjust import of io_encoding functions
    ae5ff5e4
    Christian Herdtweck authored
    2019-07-16 09:45:42 +0200  
    Browse Dir »
  • tests: test common.uopen
    e9d29e09
    Christian Herdtweck authored
    2019-07-16 09:39:32 +0200  
    Browse Dir »
  • tests: create unittests for unicode checker
    9d5c9d36
    Christian Herdtweck authored
    2019-07-16 09:21:11 +0200  
    Browse Dir »

07 May, 2019
1 commit
  • tests: Add test for %-autoformatting of log messages
    c7a708db
    Christian Herdtweck authored
    2019-05-07 10:21:14 +0200  
    Browse Dir »

01 Apr, 2019
2 commits
  • tests: replace 3 calls to deprecated function
    95bd4497
    Christian Herdtweck authored
    2019-04-01 09:05:08 +0200  
    Browse Dir »
  • tests: Test new "type" field of json logging output ...
    7d89934c
    Every logging call can have an optional arg type='...' which is
    ignored when logging to text but shows in json output. The "type"
    of regular logging output in json is type='msg'.
    
    Added 2 messages with different type, adjusted existing test, created
    2 new ones.
    Christian Herdtweck authored
    2019-04-01 09:04:52 +0200  
    Browse Dir »

21 Mar, 2019
1 commit
  • tests: Use common base dirs in log_helper tests
    83720167
    Christian Herdtweck authored
    2019-03-21 17:53:46 +0100  
    Browse Dir »

15 Oct, 2018
2 commits
  • Update imports for log_helper in tests
    911b2732
    Christian Herdtweck authored
    2018-10-15 10:42:04 +0200  
    Browse Dir »
  • Rename log_helper base dir in tests
    e073ff5a
    Christian Herdtweck authored
    2018-10-15 10:41:57 +0200  
    Browse Dir »