mirror of
https://github.com/FlipsideCrypto/flow-models.git
synced 2026-02-06 13:06:59 +00:00
bespoke tests (#70)
This commit is contained in:
parent
1c6f55b3e4
commit
a5ebc82035
16
tests/tests__moment_metadata_allday.sql
Normal file
16
tests/tests__moment_metadata_allday.sql
Normal file
@ -0,0 +1,16 @@
|
||||
WITH moments AS (
|
||||
SELECT
|
||||
nft_collection,
|
||||
nft_id,
|
||||
_inserted_timestamp
|
||||
FROM
|
||||
{{ ref('silver__nft_allday_metadata') }}
|
||||
WHERE
|
||||
_inserted_timestamp :: DATE >= CURRENT_DATE - 1
|
||||
)
|
||||
SELECT
|
||||
IFF(COUNT(nft_id) > 0, TRUE, FALSE) AS recent
|
||||
FROM
|
||||
moments
|
||||
HAVING
|
||||
recent = FALSE
|
||||
16
tests/tests__moment_metadata_topshot.sql
Normal file
16
tests/tests__moment_metadata_topshot.sql
Normal file
@ -0,0 +1,16 @@
|
||||
WITH moments AS (
|
||||
SELECT
|
||||
nft_collection,
|
||||
nft_id,
|
||||
_inserted_timestamp
|
||||
FROM
|
||||
{{ ref('silver__nft_topshot_metadata') }}
|
||||
WHERE
|
||||
_inserted_timestamp :: DATE >= CURRENT_DATE - 1
|
||||
)
|
||||
SELECT
|
||||
IFF(COUNT(nft_id) > 0, TRUE, FALSE) AS recent
|
||||
FROM
|
||||
moments
|
||||
HAVING
|
||||
recent = FALSE
|
||||
Loading…
Reference in New Issue
Block a user