about summary refs log tree commit diff
path: root/users/grfn/bbbg/test
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-12-24T17·10-0500
committerclbot <clbot@tvl.fyi>2021-12-24T17·43+0000
commit371a444eb776873848868819e9e7a08c7d810947 (patch)
treee8d29e465a2efd8290fc80390b385a7a75cfb419 /users/grfn/bbbg/test
parent92d9580df3f12db42886efbc3ca979ca6495c281 (diff)
feat(grfn/bbbg): Allow importing event attendees r/3354
Add support for importing the tsv that meetup exports into a list of
upserted attendees, and event-attendee joins.

Change-Id: I5f4ddc9fc63bcc6b0334bc3e1d3cbc4d5b99c21b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4570
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Autosubmit: grfn <grfn@gws.fyi>
Diffstat (limited to 'users/grfn/bbbg/test')
-rw-r--r--users/grfn/bbbg/test/bbbg/meetup/import_test.clj7
1 files changed, 7 insertions, 0 deletions
diff --git a/users/grfn/bbbg/test/bbbg/meetup/import_test.clj b/users/grfn/bbbg/test/bbbg/meetup/import_test.clj
new file mode 100644
index 000000000000..d7d698a58c8d
--- /dev/null
+++ b/users/grfn/bbbg/test/bbbg/meetup/import_test.clj
@@ -0,0 +1,7 @@
+(ns bbbg.meetup.import-test
+  (:require [bbbg.meetup.import :as sut]
+            [clojure.test :refer :all]))
+
+(deftest test-row-user-id->user-id
+  (is (= "246364067" (sut/row-user-id->user-id "user 246364067")))
+  (is (= "246364067" (sut/row-user-id->user-id "246364067"))))