Opened 5 years ago

Closed 5 years ago

#6512 closed enhancement (implemented)

TorExport Module and Unit Testing

Reported by: ErikI Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Stem Version:
Severity: Keywords:
Cc: eislo@… Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

TorExport has 3 functions that take descriptor object(s) and return
csv-formatted strings or files with the attributes of the provided
descriptor(s).

New Files: stem/descriptor/export.py

test/unit/descriptor/export.py

Modified file: test/mocking.py

Code available at https://github.com/jacthinman/Tor-Stem/tree/exporter

Child Tickets

Change History (3)

comment:1 Changed 5 years ago by arma

Component: - Select a componentStem
Owner: set to atagar

comment:2 Changed 5 years ago by atagar

Status: newneeds_review

Swapping status. I'll try to merge this over the weekend - thanks!

comment:3 Changed 5 years ago by atagar

Resolution: implemented
Status: needs_reviewclosed

Thanks Erik, merged with some revisions [1]. I found the unit tests a bit hard to follow, especially since it wasn't broken down by the test cases so I rewrote those. Let me know if I missed any test cases that you think are important.

[1] https://gitweb.torproject.org/stem.git/commitdiff/7022021c4207a0066cb93261629f2ba020d307f6

Note: See TracTickets for help on using tickets.