Skip to content

Commit

Permalink
Add bson files
Browse files Browse the repository at this point in the history
Also fixes a scoping issue with reloading the BSON file
(it doesn't know about HTTP unless you load the package)
  • Loading branch information
timholy committed Nov 29, 2020
1 parent 9b0bbba commit 63ddca4
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 1 deletion.
Binary file added test/http_record/CAS_as_json.bson
Binary file not shown.
Binary file added test/http_record/CAS_as_txt.bson
Binary file not shown.
Binary file added test/http_record/aspirin_cid_from_name.bson
Binary file not shown.
Binary file added test/http_record/aspirin_cid_from_smiles.bson
Binary file not shown.
Binary file added test/http_record/aspirin_smiles_from_cid.bson
Binary file not shown.
Binary file added test/http_record/asprin_sdf_3d.bson
Binary file not shown.
Binary file added test/http_record/cGMP_cid.bson
Binary file not shown.
Binary file added test/http_record/estriol_cid.bson
Binary file not shown.
Binary file added test/http_record/estriol_substructure.bson
Binary file not shown.
Binary file not shown.
Binary file added test/http_record/smarts.bson
Binary file not shown.
Binary file added test/http_record/smarts_pug.bson
Binary file not shown.
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ using CSV
using JSON3
using DataFrames
using BrokenRecord: BrokenRecord, playback
using HTTP # needed to make BSON happy upon playback
using Test

const allrecordings = [joinpath("http_record", file) for file in [
Expand Down Expand Up @@ -44,7 +45,7 @@ BrokenRecord.configure!(; path="http_record")
@test 153064026 df13.CID
# The recommended approach for substructure searches is `query_substructure_pug`
sleep(5.0 * get_recordings)
cids13 = playback(() -> query_substructure_pug(;smarts="[r13]Br"), "smarts_pug.bson") # brominated 13-atom ring structures, via PUG interface
cids13 = playback(() -> query_substructure_pug(;smarts="[r13]Br", poll_interval=10*get_recordings), "smarts_pug.bson") # brominated 13-atom ring structures, via PUG interface
@test 153064026 cids13

# properties
Expand Down

0 comments on commit 63ddca4

Please sign in to comment.