Skip to content

Commit

Permalink
stricter test
Browse files Browse the repository at this point in the history
  • Loading branch information
rakuy0 committed Mar 25, 2024
1 parent f60fdaa commit b67ed35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions synapse/tests/test_lib_storm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1808,10 +1808,10 @@ async def test_storm_embeds(self):
self.eq(top['country::flag::sha1'][0], '40b8e76cff472e593bd0ba148c09fec66ae72362')

self.nn(top.get('country::tld::domain'))
self.nn(top['country::tld::domain'], 'uk')
self.eq(top['country::tld::domain'][0], 'uk')

self.nn(bot.get('hq::email::user'))
self.nn(bot['hq::email::user'], 'visi')
self.eq(bot['hq::email::user'][0], 'visi')

empty = await core.callStorm('return($lib.view.get().fork().iden)', opts=opts)
opts['view'] = empty
Expand All @@ -1836,10 +1836,10 @@ async def test_storm_embeds(self):
self.eq(mid['country::flag::sha1'][0], '40b8e76cff472e593bd0ba148c09fec66ae72362')

self.nn(mid.get('country::tld::domain'))
self.nn(mid['country::tld::domain'], 'uk')
self.eq(mid['country::tld::domain'][0], 'uk')

self.nn(bot.get('hq::email::user'))
self.nn(bot['hq::email::user'], 'visi')
self.eq(bot['hq::email::user'][0], 'visi')

async def test_storm_wget(self):

Expand Down

0 comments on commit b67ed35

Please sign in to comment.